/* The landing page (/home, src/home.html), from the owner's Figma design (desktop 1440). Its own look, not the
   editor's: it does not load styles.css, so its colours, radii and spacing are custom properties on .landing
   below. Inter is self-hosted (assets/fonts); Instrument Serif and JetBrains Mono are not in the repo, so the
   accent words fall back to Georgia italic and the prompt to the system monospace. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); }

.landing {
  --bg: #0a0a0b;
  --text: #ffffff;
  --muted: #a3a3a3;
  --nav-text: #d0d0d0;
  --dim: #6b6b6b;
  --names: #8c8c8c;
  --prompt-text: #c4c4c4;
  --accent: #f2a33a;
  --card: #121212;
  --card-border: rgba(255, 255, 255, 0.09);
  --picture: #1a1a1a;
  --button-dark: #1c1c1c;
  --button-dark-border: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --glow-gold: rgba(235, 203, 124, 0.16);
  --glow-brown: #784803;
  --selected: #5b9bff;
  --page-width: 1200px; /* the content column; sections and their lines stay full width */
  --side: 80px;
  --section-y: 112px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  position: relative;
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
:where(.landing) a { color: inherit; text-decoration: none; }
.landing h1, .landing h2, .landing h3, .landing p { margin: 0; }
.landing :focus-visible { outline: 2px solid var(--selected); outline-offset: 2px; }
html { scroll-behavior: smooth; background: #0a0a0b; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Accent words in headings: Instrument Serif Italic (fallback Georgia italic), a little larger than the line. */
.landing h1 em, .landing h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.02em; }

/* --- content column: every section is full width (background, lines); its content sits in .landing__inner, at
   most --page-width wide and centred, with --side padding at least (so below --page-width + 2 x --side it is the
   old edge-to-edge layout with 80px, and 20px from 900px down). ------------------------------------------------ */
.landing__inner { width: 100%; max-width: calc(var(--page-width) + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); }

/* --- glows: decorative, behind everything ------------------------------------------------------------------- */
/* Placed on a centred stage of the design's 1440px (the window, when narrower), so on wider screens they stay
   behind the same parts of the content; .landing__glows is window-wide and clips them, so no horizontal scroll. */
.landing__glows { position: absolute; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }
.landing__stage { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 1440px); transform: translateX(-50%); }
.landing__glow { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.landing__glow--left { width: 700px; height: 560px; left: -200px; top: -380px; background: var(--glow-gold); filter: blur(120px); }
.landing__glow--right { width: 1100px; height: 820px; left: calc(50% - 80px); top: -420px; background: var(--glow-brown); filter: blur(130px); }
.landing__glow--closing { width: 600px; height: 300px; left: 50%; top: 189px; transform: translateX(-50%); background: var(--glow-brown); filter: blur(70px); }
.landing__bar, .landing main, .landing__footer { position: relative; z-index: 1; }

/* --- buttons ------------------------------------------------------------------------------------------------- */
.landing__button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 18px; border-radius: 10px; background: var(--text); color: var(--bg); font: 500 14px/20px var(--font); white-space: nowrap; transition: opacity 0.15s; }
.landing__button:hover { opacity: 0.88; }
.landing__button--secondary { background: var(--button-dark); border: 1px solid var(--button-dark-border); color: var(--text); }
.landing__arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 1.167; stroke-linecap: round; stroke-linejoin: round; }
.landing__soon { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 10px; border: 1px dashed var(--button-dark-border); color: var(--dim); font: 500 14px/20px var(--font); cursor: default; }

/* --- top bar ------------------------------------------------------------------------------------------------- */
.landing__bar { padding: 20px 0; }
.landing__bar > .landing__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing__logo { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font); color: var(--text); }
.landing__logo img { display: block; width: 22px; height: 28px; }
.landing__nav { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--pill-bg); border: 1px solid rgba(255, 255, 255, 0.1); }
.landing__nav a { padding: 7px 12px; border-radius: 8px; font: 500 14px/20px var(--font); color: var(--nav-text); }
.landing__nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* --- hero ---------------------------------------------------------------------------------------------------- */
.landing__hero { padding: 40px 0 72px; text-align: center; }
.landing__hero > .landing__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.landing__intro { display: flex; flex-direction: column; align-items: center; }
.landing__headline { font: 500 48px/58px var(--font); letter-spacing: -0.96px; }
.landing__headline em { line-height: 58px; }
.landing__sub { margin-top: 16px; font: 400 16px/22px var(--font); color: var(--muted); }
.landing__intro .landing__button { margin-top: 24px; }
.landing__frame { width: 100%; max-width: 962px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 40px rgba(0, 0, 0, 0.5); }
.landing__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; background: #161617; }

/* --- tested with --------------------------------------------------------------------------------------------- */
.landing__tested > .landing__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 44px; }
.landing__tested { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.landing__tested-label { font: 400 13px/1 var(--font); color: var(--dim); }
.landing__tested-list { display: contents; list-style: none; }
.landing__tested-list li { font: 600 17px/1 var(--font); color: var(--names); }

/* --- section heading pattern --------------------------------------------------------------------------------- */
.landing__section { padding: var(--section-y) 0; }
.landing__section > .landing__inner { display: flex; flex-direction: column; gap: 44px; }
.landing__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.landing__tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--pill-bg); border: 1px solid rgba(255, 255, 255, 0.12); font: 500 12px/16px var(--font); color: var(--nav-text); }
.landing__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.landing__title { font: 500 40px/48px var(--font); letter-spacing: -0.8px; }

/* --- three ways to start ------------------------------------------------------------------------------------- */
.landing__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.landing__card { display: flex; flex-direction: column; gap: 18px; min-height: 408px; padding: 12px 12px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-border); }
.landing__picture { display: flex; align-items: center; justify-content: center; height: 190px; border-radius: 12px; background: var(--picture); }
.landing__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.landing__icon svg { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.landing__card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0 12px; }
.landing__card-body h3 { font: 500 20px/26px var(--font); }
.landing__card-body p { margin-top: 6px; font: 400 15px/22px var(--font); color: var(--muted); }
.landing__card-body .landing__note { font-size: 13px; line-height: 18px; color: var(--dim); }
/* The button (or the "Coming soon" label) is pinned to the card's bottom, at least 20px below the text. */
.landing__card-body > p:last-of-type { margin-bottom: 20px; }
.landing__card-body > :last-child { margin-top: auto; }

/* --- export -------------------------------------------------------------------------------------------------- */
.landing__heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.landing__aside { max-width: 360px; font: 400 16px/24px var(--font); color: var(--muted); text-align: right; }
.landing__export { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.landing__panel { border-radius: 20px; background: var(--card); border: 1px solid var(--card-border); }
.landing__panel--demo { display: flex; align-items: center; justify-content: center; height: 360px; padding: 20px; }
.landing__block { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px; border-radius: 14px; background: #f8f4ea; border: 2px solid var(--selected); }
.landing__chip { position: absolute; left: -2px; top: -24px; padding: 3px 7px; border-radius: 4px; background: var(--selected); color: #fff; font: 500 11px/14px var(--font); }
.landing__block-title { font: 600 30px/36px var(--font); color: #3b2a1a; }
.landing__pill { padding: 9px 16px; border-radius: 999px; background: #5a3a1e; color: #fff; font: 500 13px/16px var(--font); }
.landing__panel--prompt { display: flex; flex-direction: column; gap: 16px; height: 360px; min-width: 0; padding: 20px 20px 24px; }
.landing__toolbar { display: flex; justify-content: flex-end; min-height: 32px; }
.landing__copy { padding: 7px 12px; border-radius: 10px; background: var(--button-dark); border: 1px solid var(--button-dark-border); color: var(--text); font: 500 13px/16px var(--font); cursor: pointer; }
.landing__copy:hover { background: #262626; }
.landing__copy[hidden] { display: none; }
.landing__prompt { flex: 1; min-height: 0; margin: 0; overflow: auto; font: 400 13px/24px var(--mono); color: var(--prompt-text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* --- FAQ ----------------------------------------------------------------------------------------------------- */
.landing__faq > .landing__inner { align-items: center; gap: 20px; }
.landing__faq .landing__title, .landing__faq-list { width: 100%; max-width: 800px; }
.landing__faq details { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.landing__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 18px/24px var(--font); cursor: pointer; list-style: none; }
.landing__faq summary::-webkit-details-marker { display: none; }
.landing__faq-icon { flex: none; fill: none; stroke: var(--names); stroke-width: 1.3125; stroke-linecap: round; stroke-linejoin: round; }
.landing__faq details[open] .landing__faq-plus { display: none; }
.landing__faq details p { margin-top: 10px; font: 400 15px/22px var(--font); color: var(--muted); }

/* --- closing card -------------------------------------------------------------------------------------------- */
.landing__closing { padding: 40px 0 var(--section-y); }
.landing__closing-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 80px; overflow: hidden; border-radius: 28px; background: var(--card); border: 1px solid var(--card-border); text-align: center; }
.landing__closing-card > :not(.landing__glow) { position: relative; }

/* --- footer -------------------------------------------------------------------------------------------------- */
.landing__footer { padding: 36px 0; border-top: 1px solid var(--line); }
.landing__footer > .landing__inner { display: flex; flex-direction: column; gap: 18px; }
.landing__footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 26px; flex-wrap: wrap; }
.landing__logo--small { font-size: 16px; }
.landing__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 400 14px/20px var(--font); color: var(--muted); }
.landing__links a:hover { color: var(--text); }
.landing__version { font: 400 12px/16px var(--font); color: var(--dim); }

/* --- one column from 900px down (no mobile design: the card's rules) ------------------------------------------ */
@media (max-width: 900px) {
  .landing { --side: 20px; --section-y: 72px; }
  .landing__nav { display: none; }
  .landing__bar .landing__button { padding: 10px 14px 10px 16px; }
  .landing__headline { font-size: 32px; line-height: 40px; letter-spacing: -0.64px; }
  .landing__headline em { line-height: 40px; }
  .landing__headline br { display: none; }
  .landing__title { font-size: 30px; line-height: 38px; letter-spacing: -0.6px; }
  .landing__hero { padding-top: 24px; padding-bottom: 56px; }
  .landing__hero > .landing__inner { gap: 32px; }
  .landing__tested > .landing__inner { gap: 16px 28px; }
  .landing__tested-label { flex-basis: 100%; text-align: center; }
  .landing__cards, .landing__export { grid-template-columns: minmax(0, 1fr); }
  .landing__card { min-height: 0; }
  .landing__heading-row { flex-direction: column; align-items: flex-start; }
  .landing__aside { text-align: left; }
  .landing__panel--demo { height: 300px; padding: 16px; }
  .landing__block { max-width: 100%; padding: 20px; }
  .landing__block-title { font-size: 22px; line-height: 28px; }
  .landing__panel--prompt { height: 420px; }
  .landing__closing-card { padding: 48px 20px; }
  .landing__footer-row { flex-direction: column; align-items: flex-start; }
  /* Tap targets at least 40px high; negative margins keep the spacing the smaller boxes had. */
  .landing__copy { min-height: 40px; }
  .landing__logo { min-height: 40px; }
  .landing__footer .landing__logo { margin-block: -6px; }
  .landing__links a { display: inline-flex; align-items: center; min-height: 40px; margin-block: -10px; }
  .landing__faq summary { min-height: 40px; margin-block: -8px; }
  .landing__glow--left { width: 420px; height: 360px; left: -160px; top: -240px; }
  .landing__glow--right { width: 520px; height: 460px; left: 30%; top: -260px; }
}
