/* S2D2 product site. Colors follow the app's design tokens (ui/src/styles/index.css). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-band: #eef2ff;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-subtle: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-fg: #ffffff;
  --accent-soft: #eef2ff;
  --accent-soft-fg: #4338ca;
  --ink: #1e1b4b;
  --success: #16a34a;
  --glow-1: rgb(99 102 241 / 0.28);
  --glow-2: rgb(56 189 248 / 0.2);
  --shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 24px 60px -12px rgb(30 27 75 / 0.35), 0 8px 20px -8px rgb(15 23 42 / 0.15);
  --radius: 14px;
  --max: 1160px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1222;
    --bg-subtle: #0f172a;
    --bg-band: #111a33;
    --surface: #131d33;
    --border: #1e293b;
    --border-strong: #334155;
    --fg: #e2e8f0;
    --fg-muted: #a3b1c6;
    --fg-subtle: #8090a8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-soft: rgb(99 102 241 / 0.16);
    --accent-soft-fg: #a5b4fc;
    --ink: #e0e7ff;
    --success: #22c55e;
    --glow-1: rgb(99 102 241 / 0.35);
    --glow-2: rgb(56 189 248 / 0.14);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 24px 60px -12px rgb(0 0 0 / 0.65), 0 8px 20px -8px rgb(0 0 0 / 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand:hover {
  color: var(--fg);
}

.nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--fg);
}

.site-header .button {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .site-header .button {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 24px -8px var(--glow-1);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  color: var(--fg);
  border-color: var(--accent);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-note {
  margin: 14px 0 0;
  color: var(--fg-subtle);
  font-size: 0.9rem;
}

.cta-note a {
  color: var(--fg-muted);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 18% 30%, var(--glow-1), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, var(--glow-2), transparent 70%);
  filter: blur(8px);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

/* A Windows 11-style window around screenshots. */
.window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-subtle);
}

.window-bar img {
  width: 16px;
  height: 16px;
}

.window-bar .controls {
  margin-left: auto;
  display: flex;
  gap: 18px;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
}

.window picture,
.window img.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--bg-subtle);
}

.float-card {
  position: absolute;
  display: none;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  line-height: 1.35;
}

.float-card strong {
  display: block;
  font-size: 0.92rem;
}

.float-card span {
  color: var(--fg-muted);
}

@media (min-width: 640px) {
  .float-card {
    display: flex;
  }
}

.float-chat {
  left: -28px;
  bottom: -24px;
  max-width: 270px;
  animation: drift 7s ease-in-out infinite;
}

.float-transfer {
  right: -24px;
  top: -28px;
  width: 250px;
  flex-direction: column;
  align-items: stretch;
  animation: drift 8s ease-in-out -2s infinite;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
}

.progress {
  height: 6px;
  border-radius: 99px;
  background: var(--accent-soft);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  animation: fill 3.2s ease-in-out infinite alternate;
}

.transfer-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

@keyframes drift {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fill {
  from {
    width: 38%;
  }
  to {
    width: 92%;
  }
}

/* ----------------------------------------------------------- trust strip */

.facts {
  border-block: 1px solid var(--border);
  background: var(--bg-subtle);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* -------------------------------------------------------------- sections */

section {
  padding: 80px 0;
}

@media (min-width: 980px) {
  section {
    padding: 112px 0;
  }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band {
  background: var(--bg-band);
}

/* ---------------------------------------------------------- how it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--fg-muted);
}

.network {
  margin: 48px auto 0;
  max-width: 860px;
  color: var(--fg-subtle);
}

.network .pc rect {
  fill: var(--surface);
  stroke: var(--accent);
}

.network .pc text {
  fill: var(--fg);
  font:
    600 13px "Inter",
    system-ui,
    sans-serif;
}

.network .link {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: flow 1.6s linear infinite;
}

.network .router rect {
  fill: var(--bg-subtle);
  stroke: var(--border-strong);
}

.network .router text {
  fill: var(--fg-muted);
  font:
    500 12px "Inter",
    system-ui,
    sans-serif;
}

@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}

/* -------------------------------------------------------------- features */

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature + .feature {
  margin-top: 88px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1.25fr;
    gap: 64px;
  }

  .feature:nth-of-type(even) .feature-text {
    order: 2;
  }
}

.feature-text p {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.checks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  display: flex;
  gap: 10px;
  color: var(--fg);
}

.checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234f46e5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

/* The Windows right-click menu, drawn in HTML. */
.context-menu {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  padding: 36px 0 24px 24px;
}

.file-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.file-icon i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.menu {
  list-style: none;
  margin: 0 0 0 56px;
  padding: 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
}

.menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--fg-muted);
}

.menu li.sep {
  height: 1px;
  padding: 0;
  margin: 4px 6px;
  background: var(--border);
}

.menu li.hit {
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: 600;
}

.menu li img {
  width: 18px;
  height: 18px;
}

.menu li .sub {
  margin-left: auto;
  color: var(--fg-subtle);
}

/* ---------------------------------------------------------- gallery tabs */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tabs button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.gallery .window {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------- privacy */

.privacy-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.tile p {
  margin: 0;
  color: var(--fg-muted);
}

.tile svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* --------------------------------------------------------------- pricing */

.plans {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border: 2px solid var(--accent);
}

.plan .price {
  margin: 4px 0 4px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan .per {
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.plan .checks {
  margin-bottom: 28px;
}

.plan .button {
  margin-top: auto;
}

/* ------------------------------------------------------------------- FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--fg-muted);
}

.faq .answer p:last-child {
  margin: 0;
}

/* ------------------------------------------------------------ final CTA */

.final {
  position: relative;
  overflow: hidden;
  padding: 64px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0ea5e9);
  color: #fff;
  text-align: center;
}

.final h2 {
  color: #fff;
}

.final p {
  color: #e0e7ff;
  max-width: 34em;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

.final .cta-row {
  justify-content: center;
}

.final .button-primary {
  background: #fff;
  color: #312e81;
  box-shadow: none;
}

.final .button-primary:hover {
  background: #e0e7ff;
  color: #312e81;
}

.final .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.5);
}

.final .button-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.final .cta-note,
.final .cta-note a {
  color: #c7d2fe;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ------------------------------------------------------- privacy policy */

.doc {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.doc h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}

.doc .updated {
  color: var(--fg-subtle);
}

.doc .summary {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--fg);
}

.doc .summary p:last-child {
  margin: 0;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--fg-muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

/* ---------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

/* Without JavaScript everything is visible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ the name */

.story {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.story blockquote {
  margin: 8px 0 4px;
}

.story blockquote p {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.story .translation {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.story p {
  color: var(--fg-muted);
  font-size: 1.08rem;
}

/* The name note sits right under the hero, on a tinted band. */
.name-story {
  background: var(--bg-band);
}

.site-footer p {
  margin: 0;
}
