/* Lynz website: Every Format identity.
   Cream canvas and Ink type in light mode, Ink canvas and Cream type in dark mode
   (the same brand-screen colours as the app's tour and payment screen).
   Cobalt is the one action; Coral / Cream-Ink / Cobalt only appear with their ratio. */
:root {
  --canvas: #F6F1E8;
  --card: #FFFFFF;
  --line: #E4DDD0;
  --cell: #EFE8DB;
  --text: #14151A;
  --mute: #5F6066;
  --link: #264DE3;           /* cobaltDeep, AA on Cream */
  --square: #14151A;         /* the 1:1 piece of the L: Ink on light */
  --sel-fill: #14151A;       /* Lynz Round selection: opposite of the canvas */
  --sel-text: #F6F1E8;
  --sel-mute: #ABA9A4;
  --coral: #FE7249;
  --cobalt: #2F5CFE;
  --butter: #FED15E;
  --ink: #14151A;
  --cream: #F6F1E8;
  --display: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #14151A;
    --card: #1E1F24;
    --line: #2C2D33;
    --cell: #2A2B31;
    --text: #F6F1E8;
    --mute: #9D9EA1;
    --link: #7BA1FC;         /* cobaltSoft */
    --square: #F6F1E8;       /* Cream square on dark grounds */
    --sel-fill: #F6F1E8;
    --sel-text: #14151A;
    --sel-mute: #5E5F63;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 14px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--mute); margin: 0; max-width: 34em; }
section { padding: 72px 0; }

/* Header */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
header.site .logo img { height: 30px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
nav.site { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
nav.site a { color: var(--mute); text-decoration: none; }
nav.site a[aria-current="page"], nav.site a:hover { color: var(--text); }

/* The one Cobalt action (shown once the App Store link exists) */
/* Apple's official badge, unmodified; clear space is at least a quarter of its height */
.badge { display: inline-block; line-height: 0; }
.badge img { width: 150px; height: 50px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(50px, 6.6vw, 96px); line-height: .94; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 22px; }
.hero .lead { margin-bottom: 28px; }
.hero .note { margin: 14px 0 0; }
.stage { position: relative; height: 640px; border-radius: 36px; overflow: hidden; }
.stage .L { position: absolute; right: -150px; bottom: -150px; width: 620px; height: 620px; }
.stage .phone { position: absolute; left: 50%; top: 26px; transform: translateX(-56%); }

/* Phones */
.phone { width: 280px; aspect-ratio: 9 / 19.5; border-radius: 46px; background: #0B0B0D; padding: 9px; box-shadow: 0 30px 60px rgba(20, 21, 26, .28); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: auto; position: absolute; left: 0; bottom: 0; }
.phone .bar { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 30px; font: 600 13px/1 -apple-system, sans-serif; color: #fff; z-index: 1; }
.phone .bar i { width: 84px; height: 24px; border-radius: 14px; background: #000; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); }
.phone .bar b { width: 20px; height: 10px; border: 1.3px solid currentColor; border-radius: 3px; }
.phone.light .screen { background: #F6F1E8; } .phone.light .bar { color: #14151A; }
.phone.light .bar i { background: #0B0B0D; }

/* One shot, every format: three frames share a corner, like the L */
.formats { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.frames { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.frames .f { position: absolute; border-radius: 15% / 8.4%; background: url(/assets/shot.jpg) center / cover; }
.frames .v { left: 0; top: 0; width: 56.25%; height: 100%; background-position: 28% 20%; border-radius: 26px; }
.frames .w { left: 0; top: 43.75%; width: 100%; height: 56.25%; background-position: 80% 70%; border-radius: 26px; }
.frames .s { left: 0; top: 43.75%; width: 56.25%; height: 56.25%; background-position: 20% 80%; border-radius: 26px; box-shadow: 0 0 0 5px var(--canvas); }
.tag { position: absolute; font: 500 12px/1 var(--mono); padding: 5px 7px; border-radius: 6px; }
.v .tag { left: 12px; top: 12px; background: var(--coral); color: var(--ink); }
.w .tag { right: 12px; top: 12px; background: var(--cobalt); color: #fff; }
.s .tag { left: 12px; bottom: 12px; background: var(--ink); color: var(--cream); }
.ratios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.ratios li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.ratios svg { width: 18px; height: 18px; }

/* Features: format glyphs in round cells, as in the app */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 24px; padding: 22px; }
.feature .cell { width: 48px; height: 48px; border-radius: 50%; background: var(--cell); color: var(--text); display: grid; place-items: center; flex: none; }
.feature .cell svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; line-height: 1.2; font-weight: 700; margin: 2px 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.5; }

/* The app */
.screens { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 28px; margin-top: 26px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; flex: none; scroll-snap-align: start; }
.screens .phone { width: 206px; border-radius: 38px; padding: 7px; box-shadow: 0 18px 40px rgba(20, 21, 26, .18); }
.screens .phone .screen { border-radius: 31px; }
.screens figcaption { font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-align: center; margin-top: 14px; }

/* Pricing: the payment screen's plan cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; max-width: 760px; }
.plan { display: flex; align-items: center; gap: 16px; border-radius: 24px; padding: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan .check { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex: none; display: grid; place-items: center; }
.plan h3 { margin: 0 0 4px; font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.plan p { margin: 0; color: var(--mute); font-size: 15px; }
.plan.best { background: var(--sel-fill); color: var(--sel-text); box-shadow: none; }
.plan.best h3 { color: var(--sel-text); }
.plan.best p { color: var(--sel-mute); }
.plan.best .check { background: var(--sel-text); color: var(--sel-fill); box-shadow: none; }
.best-tag { font: 700 12px/1 -apple-system, sans-serif; padding: 5px 9px; border-radius: 999px; background: var(--sel-text); color: var(--sel-fill); }
.note { color: var(--mute); font-size: 14px; margin-top: 14px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 24px; color: var(--mute); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site .brand { display: flex; align-items: center; gap: 14px; }
footer.site .brand img { height: 22px; width: auto; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--mute); }

/* Legal and support pages */
main.legal { max-width: 760px; padding-bottom: 64px; }
main.legal h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 28px 0 10px; }
main.legal h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 40px 0 8px; }
main.legal h3 { font-size: 17px; margin: 24px 0 4px; }
main.legal ul { padding-left: 22px; }
main.legal li { margin: 4px 0; }
.meta { color: var(--mute); font-size: 14px; }
.callout { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 24px; padding: 20px 22px; margin: 24px 0; }
.callout p { margin: 4px 0; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .hero, .formats { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 16px; gap: 28px; }
  .stage { height: 540px; }
  .stage .L { width: 480px; height: 480px; right: -120px; bottom: -120px; }
  .stage .phone { width: 240px; top: 22px; }
  .features, .plans { grid-template-columns: minmax(0, 1fr); }
  section { padding: 52px 0; }
  nav.site { gap: 16px; font-size: 14px; }
  nav.site .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
