@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&family=Roboto+Mono:wght@500;600&display=swap");

:root {
  --paper: #f3f0e7;
  --paper-2: #e9e4d5;
  --ink: #171713;
  --muted: #68665e;
  --line: rgba(23, 23, 19, .18);
  --yellow: #f1dd32;
  --yellow-dark: #d8c522;
  --white: #fffdf6;
  --danger: #b53425;
  --shadow: 0 24px 70px rgba(42, 37, 24, .14);
  --radius: 20px;
  --sans: "DM Sans", -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Libre Caslon Display", "Songti SC", "Noto Serif SC", serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 72px; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand b { font-weight: 400; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--yellow); font-family: var(--serif); font-size: 22px; transform: rotate(-3deg); }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .site-footer nav a:hover { color: var(--ink); }
.nav-cta { justify-self: end; color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 14px; }

main { overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: clamp(56px, 8vw, 130px); min-height: 760px; padding: 84px clamp(24px, 7vw, 110px) 110px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { width: 28px; height: 2px; background: var(--yellow-dark); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6.4vw, 102px); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { position: relative; z-index: 0; font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: 4%; height: 29%; background: var(--yellow); transform: rotate(-1deg); }
.hero-lede { max-width: 640px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 0 22px; border: 1px solid var(--ink); text-decoration: none; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.button-primary { background: var(--yellow); }
.text-action { appearance: none; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.trust-list { display: flex; flex-wrap: wrap; gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.trust-list span { color: var(--ink); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 550px; }
.paper-stack { position: absolute; width: min(92%, 500px); aspect-ratio: 4 / 5; border: 1px solid var(--line); background: #dad4c3; box-shadow: var(--shadow); }
.paper-back { transform: rotate(8deg) translate(28px, 4px); }
.paper-mid { background: #e6e0d0; transform: rotate(-5deg) translate(-22px, 12px); }
.newspaper-card { position: relative; width: min(92%, 500px); aspect-ratio: 4 / 5; padding: 34px; background: var(--white); box-shadow: var(--shadow); transform: rotate(-1.5deg); overflow: hidden; }
.newspaper-card::after { content: ""; position: absolute; inset: 0; opacity: .11; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.newspaper-meta { display: flex; justify-content: space-between; font: 600 10px var(--mono); letter-spacing: .08em; }
.newspaper-rule { height: 5px; margin: 10px 0 18px; border-block: 2px solid var(--ink); }
.newspaper-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 62px); line-height: .86; letter-spacing: -.04em; }
.newspaper-card p { max-width: 88%; margin: 24px 0 14px; font-family: Georgia, serif; font-size: 13px; line-height: 1.35; }
.newspaper-card mark { position: relative; z-index: 1; padding: 2px 8px; background: var(--yellow); font-family: var(--serif); font-size: clamp(36px, 3.7vw, 58px); line-height: 1; white-space: nowrap; }
.newspaper-columns { height: 120px; margin-top: 25px; opacity: .52; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 7px); }
.cut-badge { position: absolute; right: 0; bottom: 56px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--yellow); font: 600 12px var(--mono); transform: rotate(4deg); box-shadow: 4px 4px 0 var(--ink); }

.studio-section, .how-section, .formats-section, .faq-section { padding: 105px clamp(20px, 6vw, 92px); }
.studio-section { background: #ded8c9; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: 1240px; margin: 0 auto 48px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.6vw, 70px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.control-panel, .preview-panel { min-width: 0; padding: clamp(24px, 3vw, 42px); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 40px rgba(46, 39, 20, .06); }
.preview-panel { background: var(--ink); color: var(--paper); }
.control-panel-head, .preview-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.control-panel h3, .preview-panel h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 400; }
.panel-kicker { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--muted); }
.preview-panel .panel-kicker { color: #aaa79d; }
.icon-text-button { border: 0; border-bottom: 1px solid var(--line); padding: 4px 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 8px; }
.field-wide { margin-bottom: 22px; }
.field label, .field-label-row { font-size: 13px; font-weight: 700; }
.field-label-row { display: flex; justify-content: space-between; }
.field-label-row span { color: var(--muted); font: 500 11px var(--mono); }
.field input, .field select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); padding: 0 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241, 221, 50, .5); }
.field input { font-size: 18px; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sample-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sample-row button { min-height: 30px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 3px 8px; }
.sample-row button:hover { background: var(--yellow); border-color: var(--ink); }
.sound-control { display: grid; grid-template-columns: 1fr 50px; gap: 8px; }
.sound-preview { border: 1px solid var(--ink); background: var(--yellow); cursor: pointer; font-weight: 700; }
.advanced-panel { margin-top: 22px; border-block: 1px solid var(--line); }
.advanced-panel summary { display: flex; justify-content: space-between; align-items: center; min-height: 62px; cursor: pointer; list-style: none; }
.advanced-panel summary::-webkit-details-marker { display: none; }
.advanced-panel summary span:first-child { display: flex; align-items: baseline; gap: 12px; }
.advanced-panel summary small { color: var(--muted); font-family: var(--mono); }
.summary-icon { font-size: 24px; transition: transform .2s; }
.advanced-panel[open] .summary-icon { transform: rotate(45deg); }
.advanced-fields { display: grid; gap: 20px; padding: 0 0 24px; }
.range-field > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.range-field output { color: var(--muted); font: 500 12px var(--mono); }
.range-field input { width: 100%; accent-color: var(--ink); }
.duration-hint { margin: 0; color: var(--muted); font-size: 12px; }
.generate-button, .download-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 58px; margin-top: 24px; border: 1px solid var(--ink); background: var(--yellow); color: var(--ink); padding: 0 18px; cursor: pointer; text-decoration: none; font-weight: 800; transition: background .2s, transform .2s; }
.generate-button:hover, .download-button:hover { background: #ffe93c; transform: translateY(-1px); }
.generate-button:disabled { cursor: wait; opacity: .7; }
.generate-arrow { font-size: 24px; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.privacy-note span { color: #4f8e5e; font-size: 8px; }
.notice { max-width: 1240px; margin: 0 auto 18px; padding: 12px 14px; border: 1px solid; font-size: 13px; }
.notice-warning { background: #fff4cc; border-color: #b99f39; }
.notice-error { margin-top: 18px; margin-bottom: 0; background: #f8ddd8; border-color: var(--danger); color: #70241b; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #4a4943; color: #c7c3b7; font: 500 10px var(--mono); text-transform: uppercase; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #77736b; }
.status-pill[data-state="working"] i { background: var(--yellow); box-shadow: 0 0 0 4px rgba(241, 221, 50, .12); animation: pulse 1s infinite; }
.status-pill[data-state="done"] i { background: #72b47d; }
.status-pill[data-state="error"] i { background: #e56a5b; }
.preview-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid #414039; background: #25241f; transition: aspect-ratio .25s ease; }
.preview-stage[data-ratio="9:16"] { aspect-ratio: 9 / 14; max-height: 580px; }
.preview-stage[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.preview-stage video { width: 100%; height: 100%; object-fit: contain; background: #080808; }
.preview-empty { display: grid; place-items: center; gap: 24px; text-align: center; color: #8d897e; }
.preview-empty p { margin: 0; font-size: 13px; }
.empty-focus { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); line-height: .74; color: #34322c; letter-spacing: -.04em; }
.empty-focus mark { background: var(--yellow); color: var(--ink); padding: 0 7px; }
.render-overlay { position: absolute; inset: 0; display: grid; align-content: end; gap: 14px; padding: 28px; background: rgba(23, 23, 19, .88); backdrop-filter: blur(8px); }
.render-copy { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.render-copy span { color: var(--yellow); font: 600 36px var(--mono); }
.render-copy strong { font-size: 14px; }
.progress-track { height: 4px; background: #4a4942; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .15s linear; }
.render-overlay p { margin: 0; color: #aaa69b; font-size: 12px; }
.output-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: #aaa69b; font: 500 10px var(--mono); }
.download-button { border-color: var(--yellow); }
.regenerate-button { width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid #4a4942; background: transparent; color: #d9d5ca; cursor: pointer; }
.regenerate-button:hover { border-color: #8b887e; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-strip div { display: grid; gap: 4px; padding: 36px clamp(20px, 4vw, 64px); border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.proof-strip span { color: var(--muted); font-size: 12px; }
.how-section { background: var(--paper); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; border: 1px solid var(--line); }
.steps-grid li { min-height: 290px; padding: 34px; border-right: 1px solid var(--line); }
.steps-grid li:last-child { border-right: 0; }
.steps-grid > li > span { font: 600 12px var(--mono); color: var(--muted); }
.steps-grid h3 { margin: 80px 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.steps-grid p { margin: 0; color: var(--muted); }
.formats-section { background: var(--ink); color: var(--paper); }
.formats-section .section-heading > p, .formats-section .eyebrow { color: #a8a59c; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1240px; margin: 0 auto; background: #45433d; border: 1px solid #45433d; }
.format-grid button { display: flex; align-items: center; gap: 24px; min-height: 190px; padding: 30px; border: 0; background: #24231f; color: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.format-grid button:hover { background: #302f29; }
.ratio-shape { display: block; flex: 0 0 auto; border: 2px solid var(--yellow); }
.ratio-shape.vertical { width: 43px; height: 76px; }
.ratio-shape.square { width: 62px; height: 62px; }
.ratio-shape.landscape { width: 78px; height: 44px; }
.format-grid button div { display: grid; }
.format-grid b { color: var(--yellow); font: 600 11px var(--mono); }
.format-grid strong { margin: 3px 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.format-grid small { color: #9c998f; font-family: var(--mono); }
.faq-section { background: var(--paper-2); }
.faq-grid { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-grid details { border-bottom: 1px solid var(--line); }
.faq-grid summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary span { font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-grid details[open] summary span { transform: rotate(45deg); }
.faq-grid p { max-width: 760px; margin: -4px 0 24px; color: var(--muted); }
.final-cta { display: grid; justify-items: center; padding: 120px 20px; text-align: center; }
.final-cta h2 { margin: 0 0 36px; font-family: var(--serif); font-size: clamp(54px, 7vw, 104px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.site-footer { display: grid; grid-template-columns: 1fr 1.4fr auto auto; align-items: center; gap: 30px; padding: 36px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }

.legal-page { min-height: 100vh; }
.legal-main { max-width: 820px; margin: 0 auto; padding: 90px 24px 120px; }
.legal-main h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(52px, 8vw, 86px); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
.legal-main .updated { margin: 0 0 56px; color: var(--muted); font: 500 11px var(--mono); }
.legal-main section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-main h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main ul { padding-left: 22px; }
.not-found { display: grid; place-items: center; min-height: calc(100vh - 72px); padding: 40px 20px; text-align: center; }
.not-found strong { display: block; font: 400 clamp(100px, 24vw, 260px)/.8 var(--serif); color: var(--yellow-dark); }
.not-found h1 { margin: 22px 0 10px; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.not-found p { margin: 0 0 28px; color: var(--muted); }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 520px; }
  .studio-grid { grid-template-columns: 1fr; }
  .preview-panel { min-height: 620px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .format-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding-inline: 18px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; padding: 58px 20px 78px; gap: 45px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero h1 em { white-space: normal; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 420px; }
  .newspaper-card { padding: 25px; }
  .studio-section, .how-section, .formats-section, .faq-section { padding: 76px 16px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 34px; }
  .studio-heading > p { font-size: 13px; }
  .control-panel, .preview-panel { padding: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .preview-panel { min-height: auto; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div { padding: 24px 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-grid li:last-child { border-bottom: 0; }
  .steps-grid h3 { margin-top: 42px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
