/* Signopedia · product site. Colors and type are the app's own (mobile-ios/SignopediaApp/Brand/tokens.json, Figtree). */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-700-d4u.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF; --bg-alt: #F6F5FA; --surface: #FFFFFF; --ink: #17172B; --muted: #5D5B73; --line: #ECEAF3;
  --primary: #6A2FE0; --on-primary: #FFFFFF; --tint: #F1EBFE; --plate: #FFFFFF;
  --band-start: #E3EEF8; --band-end: #E6DDFA; --brand-start: #7A3FF2; --brand-end: #FF5E7E;
 
  --d4u: #1652F0;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E1A; --bg-alt: #13132A; --surface: #1A1A2E; --ink: #F4F3FA; --muted: #B9B7CF; --line: #2E2D48;
    --primary: #B99BFF; --on-primary: #17172B; --tint: #2A2150; --plate: #FFFFFF;
    --band-start: #1B2A40; --band-end: #2B2250;
    --d4u: #5B87FF;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E1A; --bg-alt: #13132A; --surface: #1A1A2E; --ink: #F4F3FA; --muted: #B9B7CF; --line: #2E2D48;
  --primary: #B99BFF; --on-primary: #17172B; --tint: #2A2150; --plate: #FFFFFF;
  --band-start: #1B2A40; --band-end: #2B2250;
  --d4u: #5B87FF;
}

/* Logo and theme icons follow the same two selectors */
.logo-dark, .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .i-moon { display: none; }
  :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .i-sun { display: block; }
}
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .i-sun { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }  /* anchors land below the sticky bar */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 750; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--primary); }
.tools { display: flex; align-items: center; gap: 10px; }
.theme { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme svg { width: 19px; height: 19px; }
.lang { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.lang:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background: radial-gradient(120% 90% at 100% 0%, var(--band-end) 0%, transparent 55%), radial-gradient(90% 70% at 0% 100%, var(--band-start) 0%, transparent 60%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.grad { background: linear-gradient(90deg, var(--brand-start), var(--brand-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 22px 0 12px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; }
.hero-text > p:not(.lead):not(.soon) { color: var(--muted); }
.soon { display: inline-block; margin: 18px 0 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
/* Phones: D4U's frame (.sh-phone, assets/css/devices.css). Only its size and placement are set here. */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-left: auto; }
.hero-phones .sh-phone { --sh-phone-w: 250px; }
.hero-phones .back { transform: translate(14%, -6%); }
.hero-phones .front { margin-left: -60px; transform: translateY(6%); z-index: 1; }
/* The shell's phone takes the capture's ratio for the whole frame, so its bezel cropped ~1.6% off each side
   of the screen and the text touched the edge. Here the screen keeps the capture's own ratio, uncropped. */
.sh-phone { aspect-ratio: auto; }
.sh-phone > img { height: auto; }

/* Packages */
.band { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-alt); }
.section-lead { margin: 14px 0 40px; color: var(--muted); font-size: 19px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
.pack { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plate { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 20px; background: var(--plate); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(40, 10, 90, .25); }
.plate img { width: 60px; height: 60px; object-fit: contain; }
.pack h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.count { margin: 6px 0 10px; color: var(--primary); font-weight: 700; font-size: 15px; }
.pack p:last-child { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* How it works */
.how { padding: clamp(64px, 9vw, 120px) 0; }
.how h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.feature .sh-phone { --sh-phone-w: 260px; }
.feature { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: clamp(28px, 6vw, 80px); padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) { grid-template-columns: 1fr 260px; }
.feature:nth-of-type(even) .sh-phone { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.feature p { color: var(--muted); font-size: 19px; }
.step { margin: 0 0 8px; color: var(--primary); font-weight: 800; letter-spacing: .08em; font-size: 14px; }

/* Promise */
.promise { padding: clamp(64px, 9vw, 110px) 0; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #FFFFFF; text-align: center; }
.promise p { max-width: 640px; margin: 18px auto 0; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; }
.button { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; }
.promise .button { margin-top: 10px; background: #FFFFFF; color: #17172B; }
.button:hover { filter: brightness(1.08); }

/* Notice */
.notice { padding: 56px 0; }
.notice h2 { font-size: 22px; }
.notice p { color: var(--muted); }

/* Documents: privacy, terms, support */
.doc { padding: clamp(40px, 7vw, 80px) 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 26px; }
.doc h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 800; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 800; }
.doc p, .doc li { color: var(--ink); }
.doc .lead { font-size: 20px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 36px 18px 0; position: relative; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--primary); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.missing { text-align: center; }
.missing h1 { font-size: 96px; }

/* Footer: D4U's one structure (store shell, d4u.work). Top: the product, the company, the legal links;
   below a line: the © on the left and the signature on the right. Stacked on phones. */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.foot p { margin: 0; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot ul a { font-weight: 400; }
.foot ul a:hover { color: var(--primary); }
.foot-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 40px; padding: 44px 0 32px; }
.foot-mark { display: block; margin-bottom: 12px; }
.foot .foot-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-company strong { color: var(--ink); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 32px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
.powered a { color: var(--ink); font: 700 15px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; text-decoration: none; }
.powered b { color: var(--d4u); font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { margin: 8px auto 0; }
  .hero-phones .sh-phone { --sh-phone-w: 190px; }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature:nth-of-type(even) .sh-phone { order: 0; }
  .feature .sh-phone { --sh-phone-w: 220px; }
  .feature p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .tools { margin-left: auto; }
  .brand img { height: 26px; }
}
/* Back to top, as on d4u.work: a round button fixed at the bottom right; it shows once the page has scrolled
   past the first screen (assets/js/to-top.js) and rises above the last footer row so it never covers it. */
.to-top { position: fixed; right: 24px; bottom: calc(24px + var(--lift, 0px)); z-index: 6; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px rgba(23, 23, 43, .14); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 200ms ease, transform 200ms ease, visibility 200ms, border-color 180ms ease, color 180ms ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { border-color: var(--primary); color: var(--primary); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: calc(16px + var(--lift, 0px)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
