/* ============================================================================
   StoryGenie — White theme, punchy-yellow highlights, bento-grid layout.
   Clean SaaS surface (à la autoshorts.ai) with soft rounded "clay-lite" cards
   packed bento-style. Yellow is the single accent: buttons, highlights,
   selected states, badges, progress. Text stays near-black on white.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* base */
  --bg:        #FFFFFF;      /* page: white */
  --bg-soft:   #FBFAF6;      /* faint warm section band */
  --surface:   #FFFFFF;      /* cards */
  --surface-2: #FFFDF5;      /* faint tinted card */
  --line:      #ECEBE4;      /* hairline borders */

  --ink:       #16150F;      /* near-black text */
  --ink-soft:  #605C4E;      /* secondary text */
  --ink-faint: #908B7A;

  /* yellow accent (punchy) */
  --yellow:      #FFC400;    /* primary */
  --yellow-strong:#F5B400;
  --yellow-deep: #C98A00;    /* text/hover on light */
  --yellow-soft: #FFF3C4;    /* highlight fill */
  --yellow-tint: #FFFBEA;    /* faint wash */
  --highlight:   #FFE770;    /* marker behind words */

  --good: #1E9E52;
  --danger: #D9480F;

  /* soft clay-lite shadows on white */
  --shadow:    0 6px 24px rgba(30, 26, 10, 0.07), 0 1px 2px rgba(30,26,10,0.05);
  --shadow-sm: 0 3px 12px rgba(30, 26, 10, 0.06);
  --shadow-yellow: 0 8px 22px rgba(255, 196, 0, 0.35);
  --inset: inset 0 2px 6px rgba(30,26,10,0.06);

  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* layout ------------------------------------------------------------------ */
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 22px; }
.narrow { max-width: 460px; }
.section { padding-block: 76px; }
.section.band { background: var(--bg-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row.center { justify-content: center; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr;} .section{padding-block:52px;} }

/* clay-lite surfaces ------------------------------------------------------ */
.clay {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.clay-sm { box-shadow: var(--shadow-sm); border-radius: var(--radius); padding: 18px; }
.clay-inset {
  background: var(--yellow-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.clay.tinted { background: var(--surface-2); }
.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30,26,10,.10); }

/* typography -------------------------------------------------------------- */
h1,h2,h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); font-weight: 400; }
.hl { background: linear-gradient(180deg, transparent 55%, var(--highlight) 55%); padding: 0 .08em; }
.hl-solid { color: var(--yellow-deep); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow-deep); background: var(--yellow-soft);
  padding: 7px 15px; border-radius: var(--radius-pill); border: 1px solid #F4E4A0;
}
a { color: var(--yellow-deep); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--inset); }
.btn-primary { background: var(--yellow); color: #1A1400; border-color: var(--yellow-strong); box-shadow: var(--shadow-yellow); }
.btn-primary:hover { background: var(--yellow-strong); }
.btn-accent { background: var(--ink); color: #fff; border-color: var(--ink); }   /* dark contrast option */
.btn-ghost { background: transparent; box-shadow: none; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: .88rem; box-shadow: none; }

/* nav --------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; padding-block: 12px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--yellow); box-shadow: var(--shadow-yellow); font-size: 1.25rem;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
@media (max-width: 620px){ .nav-links a.hide-sm { display:none; } }

/* forms ------------------------------------------------------------------- */
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft); outline: none; transition: border .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); background:#fff; }
textarea { resize: vertical; min-height: 96px; }
.field + .field { margin-top: 18px; }

/* pills / badges ---------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .76rem;
  padding: 5px 13px; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge.free { background: var(--yellow-soft); color: var(--yellow-deep); border-color:#F4E4A0; }
.badge.ready { background: #E4F7EA; color: #14713A; border-color:#C7ECD3; }
.badge.rendering { background: var(--yellow-soft); color: var(--yellow-deep); border-color:#F4E4A0; }
.badge.planned { background: var(--bg-soft); color: var(--ink-faint); }
.badge.locked { background: #F6F5F0; color: var(--ink-faint); }

/* genre chips ------------------------------------------------------------- */
.genre-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 820px){ .genre-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .genre-grid { grid-template-columns: 1fr;} }
.genre {
  display: block; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; transition: transform .15s ease, border-color .15s;
}
.genre:hover { transform: translateY(-4px); text-decoration: none; border-color: var(--yellow); }
.genre.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); background: var(--yellow-tint); }
.genre .emoji { font-size: 1.8rem; }
.genre h3 { margin: 8px 0 3px; }
.genre p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* bento hero -------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { border-radius: var(--radius-lg); }
.b-head { grid-column: span 4; }
.b-preview { grid-column: span 2; grid-row: span 2; display:flex; }
.b-kpi { grid-column: span 2; }
.b-wide { grid-column: span 4; }
@media (max-width: 860px){
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-head,.b-wide { grid-column: 1 / -1; }
  .b-preview { grid-column: 1 / -1; grid-row: auto; }
  .b-kpi { grid-column: span 1; }
}
.phone {
  width: 100%; aspect-ratio: 9/16; border-radius: 26px; overflow:hidden;
  background: linear-gradient(160deg, #1b1b1b, #333); box-shadow: var(--shadow);
  display:flex; align-items:flex-end; padding: 16px; color:#fff; position:relative;
}
.phone::before { content:"▶"; position:absolute; inset:0; display:grid; place-items:center; font-size:2.4rem; color:rgba(255,255,255,.85); }
.phone .cap { position:relative; font-weight:700; font-size:.9rem; background:rgba(0,0,0,.35); padding:6px 10px; border-radius:10px; }

/* how-it-works steps ------------------------------------------------------ */
.step-n {
  width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center;
  background: var(--yellow-soft); color: var(--yellow-deep); font-weight: 800; font-size: 1.15rem;
  border: 1px solid #F4E4A0;
}

/* episode card ------------------------------------------------------------ */
.ep { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.ep .poster { aspect-ratio: 9/16; background: var(--yellow-tint); position: relative; }
.ep .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep .poster .day { position: absolute; top: 10px; left: 10px; }
.ep .body { padding: 14px; }
.ep .body h3 { font-size: .98rem; }

/* pricing ----------------------------------------------------------------- */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--yellow); box-shadow: 0 12px 30px rgba(255,196,0,.22); }
.price-card .amt { font-size: 2.8rem; font-weight: 800; }
.price-card .amt small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.price-card li { padding: 7px 0 7px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: #1A1400; font-weight: 700; font-size: .76rem; padding: 5px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-yellow); }

/* misc -------------------------------------------------------------------- */
.footer { padding-block: 44px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.notice { background: var(--yellow-tint); border: 1px solid #F4E4A0; border-radius: 14px; padding: 13px 16px; font-weight: 500; }
.notice.warn { background: #FFF6E9; border-color:#F6D9A6; }
.kpi { text-align: left; }
.kpi .n { font-size: 2.3rem; font-weight: 800; color: var(--ink); }
.progress { height: 12px; background: var(--bg-soft); border:1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.trust { color: var(--ink-faint); font-size: .9rem; }
.trust strong { color: var(--ink); }
video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background:#000; }
