/* Storyboard Frame Studio — landing. Storyboard-sheet look: warm paper, charcoal panels with number
   tabs, blue pencil construction lines, red marker for movement. */

@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/mulish-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/mulish-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/source-code-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-code-pro-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #F2EEE6;
  --card: #FFFDF8;
  --sunk: #E7E1D5;
  --ink: #22201D;
  --soft: #575148;
  --line: #D6CFC1;
  --blue: #2F6FA8;
  --blue-dark: #1F4F7C;
  --blue-tint: #DCE8F3;
  --red: #C8412F;
  --amber: #D9A21B;
  --amber-dark: #7D5600;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --text: "Mulish", "Segoe UI", Arial, sans-serif;
  --mono: "Source Code Pro", Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, li, dd, dt, summary, figcaption { overflow-wrap: anywhere; hyphens: auto; }
.mono { font-family: var(--mono); }
.small { font-size: 14.5px; color: var(--soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* Pencil underline (a loose wave) used under section titles */
.kicker { font-family: var(--text); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 6px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; margin: 0; hyphens: manual; }
h2 { font-size: clamp(38px, 5vw, 60px); padding-bottom: 18px; margin-bottom: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10' viewBox='0 0 44 10'%3E%3Cpath d='M0 5 Q11 0 22 5 T44 5' fill='none' stroke='%232F6FA8' stroke-width='2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E") left bottom / 44px 10px repeat-x; background-size: 44px 10px; background-repeat: repeat-x; max-width: 100%; }
h3 { font-family: var(--text); font-weight: 800; font-size: 22px; line-height: 1.25; margin: 0 0 8px; }

/* Header */
.top { border-bottom: 1.5px solid var(--ink); background: var(--card); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; line-height: 1; }
.brand:hover { color: var(--ink); }
.nav { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-block; padding: 10px 12px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 72px; border-bottom: 1.5px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 5.6vw, 86px); }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--blue); }
.lead { font-size: 19px; color: var(--soft); max-width: 620px; margin: 22px 0 26px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta .small { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; border-top: 1.5px solid var(--ink); }
.facts div { padding: 14px 14px 0 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-weight: 700; font-size: 24px; color: var(--amber-dark); }
.facts dd { margin: 2px 0 0; font-size: 14px; color: var(--soft); line-height: 1.4; }

/* The storyboard sheet in the hero */
.sheet { background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 18px 18px 22px; background-image: linear-gradient(var(--blue-tint) 1px, transparent 1px); background-size: 100% 28px; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.sheet-head .mono { letter-spacing: 0; color: var(--amber-dark); }
.sheet-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Panels: real screens framed like storyboard frames with a number tab */
.panel { margin: 0; }
.panel-frame { position: relative; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: #fff; }
.panel-tab { position: absolute; left: 0; top: 0; z-index: 1; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 2px 8px; border-bottom-right-radius: 4px; }
.panel figcaption { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); padding-top: 8px; }
.panel figcaption .mono { color: var(--amber-dark); letter-spacing: 0; }

/* Scene 2: the steps */
.frames { padding: 88px 0 40px; }
.section-lead { font-size: 19px; color: var(--soft); max-width: 680px; margin: 0 0 48px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 56px; }
.step { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 56px; border-bottom: 1px dashed var(--blue); }
.step:last-child { border-bottom: 0; }
.step.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.step.flip .panel { order: 2; }
.step.flip .step-copy { justify-self: end; }
.step-copy { max-width: 560px; }
.step-copy p { margin: 0; color: var(--soft); }
.step-move { color: var(--red) !important; font-weight: 700; font-size: 14px; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: 0.04em; }

/* Scene 3: export */
.export { padding: 72px 0; background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.export-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 56px; align-items: center; }
.export p { color: var(--soft); max-width: 620px; }
.sheets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.sheets li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 14px; }
.mini { display: grid; width: 92px; height: 65px; padding: 6px; gap: 4px; border: 1.5px solid var(--ink); background: #fff; }
.mini i { border: 1.5px solid var(--blue); }
.mini-0 { grid-template-columns: 1fr 1fr; }
.mini-1 { grid-template-columns: 1fr 1fr 1fr; }
.mini-2 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Scene 4: uses */
.uses { padding: 88px 0; }
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.use { padding: 20px 20px 8px 0; }
.use + .use { padding-left: 20px; border-left: 1px solid var(--line); }
.use-no { display: block; color: var(--amber-dark); font-weight: 700; margin-bottom: 8px; }
.use h3 { font-size: 19px; }
.use p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* Privacy strip */
.private { background: var(--ink); color: #F2EEE6; padding: 64px 0; }
.private h2 { color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10' viewBox='0 0 44 10'%3E%3Cpath d='M0 5 Q11 0 22 5 T44 5' fill='none' stroke='%237FB2E0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.private p { color: #D9D3C7; }
.private a { color: #9CC6EE; }
.private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 10px; border-left: 3px solid #E07563; border-bottom: 3px solid #E07563; transform: rotate(-45deg); }

/* FAQ */
.faq { padding: 80px 0 56px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 14px 0; list-style-position: outside; }
details p { margin: 0 0 16px; color: var(--soft); }

/* Download */
.download { padding: 0 0 88px; }
.download-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 6px; padding: 28px; background: var(--card); }
.download-inner img { border-radius: 18px; }
.download-inner div { flex: 1 1 260px; }
.download-inner h2 { font-size: clamp(32px, 4vw, 44px); background: none; padding: 0; margin: 0 0 4px; }
.download-inner p { margin: 0; color: var(--soft); }

/* Google Play button (disabled until the store URL is set) */
.play { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 22px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); line-height: 1.15; }
.play:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.play-small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.play-big { font-family: var(--display); font-size: 26px; letter-spacing: 0.04em; }
.play-soon { background: transparent; color: var(--ink); border: 2px dashed var(--ink); cursor: default; }

/* Inner pages */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(46px, 7vw, 76px); margin-bottom: 8px; }
.page .lead { margin-top: 12px; }
.contact { font-weight: 700; }
.help-item { padding: 18px 0; border-top: 1px solid var(--line); }
.help-item h2, .legal h2 { font-family: var(--text); font-weight: 800; font-size: 21px; line-height: 1.3; letter-spacing: 0; background: none; padding: 0; margin: 0 0 8px; }
.help-item h2 .mono { color: var(--amber-dark); font-size: 16px; margin-right: 6px; }
.help-item p { margin: 0; color: var(--soft); }
.legal h2 { margin-top: 30px; }
.legal p { color: var(--soft); }

/* Footer */
.foot { background: var(--ink); color: #F2EEE6; padding: 36px 0; border-top: 4px solid var(--blue); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-name { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 0.03em; line-height: 1; }
.foot-small { margin: 4px 0 0; font-size: 14px; color: #CFC8BB; }
.foot-links { list-style: none; display: flex; gap: 8px 22px; padding: 0; margin: 0; flex-wrap: wrap; }
.foot-links a { color: #F2EEE6; font-weight: 700; }
.foot-links a:hover { color: #9CC6EE; }

@media (max-width: 960px) {
  .hero-grid, .export-grid, .private-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step, .step.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step .panel, .step.flip .panel { order: 0; max-width: 300px; }
  .step.flip .step-copy { justify-self: start; }
  .export-grid .panel { max-width: 300px; }
  .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .lead, .section-lead { font-size: 17px; }
  .brand { font-size: 23px; }
  .brand img { width: 36px; height: 36px; }
  .nav a { padding: 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sheet { padding: 12px; }
  .sheet-row { gap: 8px; }
  .panel-tab { font-size: 11px; padding: 1px 5px; }
  .sheet .panel figcaption { font-size: 11px; letter-spacing: 0.02em; flex-direction: column; gap: 0; }
  .use-grid { grid-template-columns: minmax(0, 1fr); }
  .use, .use + .use { padding: 18px 0 10px; border-left: 0; border-top: 1px solid var(--line); }
  .use:first-child { border-top: 0; }
  .download-inner { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
