/* PhoneBox website (TASK-WEB-001). Tokens from docs/DESIGN_SYSTEM.md: black and white, teal for what can be
   tapped, Light and Dark by the system setting. The hero is always dark, as OptiPixel's. */
:root {
  --bg: #FFFFFF; --surface: #F4F4F5; --surface-2: #E9E9EC;
  --text: #000000; --text-2: #5C5C63; --text-3: #696970;
  --separator: #E4E4E7; --outline: #D4D4D8;
  --brand: #0E7C86; --on-brand: #FFFFFF; --brand-container: #E0F2F3; --on-brand-container: #0A5E66;
  --accent-a: #0E7C86; --accent-b: #3CC3CC;
  --radius: 20px; --gutter: 24px; --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E;
    --text: #FFFFFF; --text-2: #A1A1AA; --text-3: #9898A0;
    --separator: #2C2C2E; --outline: #3F3F46;
    --brand: #3CC3CC; --on-brand: #000000; --brand-container: #0F2E31; --on-brand-container: #3CC3CC;
    --accent-a: #3CC3CC; --accent-b: #A6F0EA;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--separator); }
.header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--text-2); }
/* Language picker and phone menu: native <details>, no script */
.lang, .menu { position: relative; }
.lang summary, .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 44px; color: var(--text-2); font-size: 15px; }
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.menu summary { width: 44px; justify-content: center; border-radius: 999px; background: var(--surface); color: var(--text); }
.lang ul { position: absolute; inset-inline-end: 0; top: 48px; z-index: 6; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--separator); border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
  display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; max-height: 70vh; overflow: auto; }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); }
.lang li a:hover, .lang li a[aria-current] { background: var(--surface); text-decoration: none; }
.menu nav { position: absolute; inset-inline-end: 0; top: 52px; z-index: 6; width: min(280px, 90vw); padding: 12px;
  display: grid; gap: 4px; background: var(--bg); border: 1px solid var(--separator); border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.menu nav a { padding: 10px 12px; border-radius: 10px; color: var(--text); }
.menu nav a.button { color: var(--on-brand); justify-content: center; margin-top: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 600;
  font-size: 15px; }
.button:hover { text-decoration: none; filter: brightness(1.06); }
.menu { display: none; }

/* Hero: always dark, the filmstrip behind it */
.hero { position: relative; overflow: hidden; background: #050708; color: #fff; }
.hero .strip { position: absolute; inset: -12% -30% -12% 18%; transform: rotate(-6deg);
  background-size: cover; background-position: left center; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #050708 0%, rgba(5,7,8,.92) 36%, rgba(5,7,8,.15) 70%, rgba(5,7,8,.5) 100%),
    linear-gradient(180deg, rgba(5,7,8,0) 70%, #050708 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { font-size: 64px; line-height: 1.04; letter-spacing: -1.5px; margin: 0; max-width: 620px; }
.hero h1 .accent { background: linear-gradient(90deg, #3CC3CC, #A6F0EA); -webkit-background-clip: text; background-clip: text; }
.hero p { font-size: 20px; color: rgba(255,255,255,.72); max-width: 540px; margin: 22px 0 32px; }
.hero .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .secondary { color: #fff; font-weight: 600; }
.hero .note { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 600; }
.badge:hover { text-decoration: none; border-color: #fff; }
.badge svg { width: 26px; height: 26px; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.badge span { line-height: 1.1; font-size: 19px; }

/* Sections */
section.block { padding: 96px 0; }
section.block + section.block { border-top: 1px solid var(--separator); }
h2 { font-size: 44px; line-height: 1.1; letter-spacing: -1px; margin: 0 0 40px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--text-2); }
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 72px 0; }
.feature + .feature { border-top: 1px solid var(--separator); }
.feature:nth-of-type(even) .shot { order: -1; }
.feature h2 { margin-bottom: 18px; }
.feature p.lead { color: var(--text-2); font-size: 19px; margin: 0 0 22px; }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature li { padding-inline-start: 30px; position: relative; }
.feature li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 9px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.shot { border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center;
  justify-content: center; gap: 4%; padding: 6% 6% 0;
  background: radial-gradient(ellipse 80% 70% at 30% 20%, rgba(14,124,134,.55), rgba(14,124,134,0) 70%),
    radial-gradient(ellipse 70% 60% at 85% 90%, rgba(60,195,204,.35), rgba(60,195,204,0) 70%), #050708; }
.shot img { width: 44%; align-self: flex-start; border-radius: 22px; border: 5px solid #1b1f22;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.shot img + img { margin-top: 14%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-flex; width: 36px; height: 36px;
  border-radius: 999px; align-items: center; justify-content: center; background: var(--brand-container);
  color: var(--on-brand-container); font-weight: 700; margin-bottom: 16px; }
.muted { color: var(--text-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plans ul { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.plans .premium { background: var(--text); color: var(--bg); }
.plans .premium p, .plans .premium li { color: var(--bg); }
details { border-bottom: 1px solid var(--separator); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details p { color: var(--text-2); margin: 10px 0 0; }
.cta { text-align: center; }
.cta img.icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22px; }
.cta p { color: var(--text-2); margin: -24px 0 28px; }
.footer { border-top: 1px solid var(--separator); padding: 40px 0 56px; font-size: 14px; color: var(--text-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer a { color: var(--text-2); }
.footer .tag { flex-basis: 100%; }

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .menu { display: block; margin-inline-start: auto; }
  .lang { margin-inline-start: auto; }
  .lang + .button + .menu { margin-inline-start: 0; }
  .header .wrap > .button { display: none; }
  .hero .wrap { padding-top: 64px; padding-bottom: 380px; }
  .hero .strip { inset: 46% -80% -20% -30%; }
  .hero::after { background: linear-gradient(180deg, #050708 0%, rgba(5,7,8,.85) 45%, rgba(5,7,8,.1) 75%, #050708 100%); }
  .hero h1 { font-size: 40px; letter-spacing: -.8px; }
  .hero p { font-size: 18px; }
  section.block { padding: 64px 0; }
  h2 { font-size: 32px; margin-bottom: 28px; }
  .why, .steps, .plans { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feature:nth-of-type(even) .shot { order: 0; }
}
/* Articles, support, guides */
.narrow { max-width: 820px; }
h1.title { font-size: 48px; line-height: 1.08; letter-spacing: -1px; margin: 0 0 16px; }
p.lead { font-size: 19px; color: var(--text-2); }
.after { margin-top: 24px; }
.features { padding-top: 24px; padding-bottom: 24px; }
.article h2 { font-size: 28px; margin: 40px 0 12px; letter-spacing: -.4px; }
.article h3 { font-size: 20px; margin: 28px 0 8px; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-inline-start: 24px; display: grid; gap: 6px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; background: var(--surface);
  padding: 1px 6px; border-radius: 6px; }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card.guide { color: var(--text); display: block; }
.card.guide:hover { text-decoration: none; background: var(--surface-2); }
@media (max-width: 860px) {
  h1.title { font-size: 34px; }
  .guides { grid-template-columns: 1fr; }
  .article h2 { font-size: 24px; }
}
/* Right to left: the strip moves to the other side, never mirrored (the screens hold text); the shade flips. */
[dir="rtl"] .hero .strip { inset: -12% 18% -12% -30%; transform: rotate(6deg); background-position: right center; }
[dir="rtl"] .hero::after { transform: scaleX(-1); }
@media (max-width: 860px) { [dir="rtl"] .hero .strip { inset: 46% -30% -20% -80%; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
