/* PloTwin website. Colours and type match the app (navy, teal, sand; Inter Tight and Inter). */
:root {
  --navy: #133249; --navy-2: #0f2433; --teal: #166873; --teal-bright: #3eb4b6; --sand: #d4b382;
  --ink: #0f2433; --muted: #5e6b73; --line: #e3e1dc; --bg: #ffffff; --bg-soft: #f6f5f3; --teal-soft: #e3f0f1;
  --display: "Inter Tight", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--navy-2); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--navy); color: #e3ecee; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: var(--sand); }
.dark .muted, .dark .lead { color: #b7c7cd; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand b { color: var(--teal-bright); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #12585f; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); }
.dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.nav .btn, .nav a.btn[aria-current="page"] { padding: 9px 16px; font-size: .9rem; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { padding: 96px 0 80px; background: var(--navy); color: #e3ecee; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--sand); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero .lead { color: #c3d3d8; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tiles span { aspect-ratio: 1; border-radius: 8px; background: var(--teal); }
.tiles span:nth-child(3n) { background: #2a5c6f; }
.tiles span:nth-child(4n) { background: var(--sand); }
.tiles span:nth-child(5n) { background: #5fa8a0; }
.tiles span:nth-child(7n) { background: transparent; border: 1.5px dashed rgba(255,255,255,.35); }
.tiles span:nth-child(11n) { background: var(--teal-bright); }

/* hero example: delay one plot */
.demo { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo-head b { font-family: var(--display); font-size: 1.05rem; color: var(--navy-2); }
.demo-toggle { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.demo-toggle button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.demo-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.demo-timeline { --span: 72; font-size: .75rem; color: var(--muted); }
.demo-years, .demo-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; }
.demo-years { padding-left: 52px; grid-template-columns: repeat(6, 1fr); margin-bottom: 4px; }
.demo-row { height: 22px; }
.demo-row span { font-weight: 600; color: var(--ink); }
/* each bar runs from the plot's start month across the six years shown */
.demo-row i { position: relative; height: 12px; }
.demo-row i::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--start) / var(--span) * 100%); border-radius: 6px; background: var(--teal); transition: left .6s ease, background .3s; }
.demo.delayed .demo-row.moving i::before { left: calc(24 / var(--span) * 100%); background: var(--sand); }
.demo-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.demo-figures div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; }
.demo-figures small { grid-column: 1 / -1; }
.demo-figures b { white-space: nowrap; }
.demo-figures small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.demo-figures b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy-2); transition: color .3s; }
.demo-figures em { display: block; font-style: normal; font-size: .78rem; font-weight: 700; color: #b42318; min-height: 1.1em; }
.demo.delayed .demo-figures b { color: #8a5a12; }
.demo-note { font-size: .74rem; color: var(--muted); margin: 14px 0 0; }

/* walkthrough */
.walk { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.walk-text h3 { font-size: 1.35rem; }
.walk-figures { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.walk-figures div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.walk-figures small { color: var(--muted); font-weight: 600; }
.walk-figures b { font-family: var(--display); font-size: 1.3rem; color: var(--navy-2); }

/* layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.soft .card { border-color: transparent; }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--teal); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.stat { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--teal); line-height: 1.1; }
.dark .stat { color: var(--sand); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15,36,51,.12); background: #fff; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { list-style: none; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.source { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.dark .source, .dark .source a { color: #93a8b0; }

/* lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.lifecycle div { border-radius: var(--radius); padding: 22px; background: var(--teal); color: #fff; }
.lifecycle div.next { background: #8fa3ae; }
.lifecycle b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }
.lifecycle small { display: block; margin-top: 10px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }

/* pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { background: var(--navy); color: #e3ecee; border-color: var(--navy); }
.price-card.featured h3 { color: #fff; }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--navy-2); margin: 8px 0 0; }
.featured .price { color: #fff; }
.price-card .ticks { margin: 20px 0 28px; flex: 1; }
.featured .ticks li::before { border-color: var(--teal-bright); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; margin: 24px 0 36px; }
.toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* about */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.founder img { border-radius: 50%; width: 240px; height: 240px; object-fit: cover; }

/* form */
form { display: grid; gap: 16px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-bright); outline-offset: 1px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* footer */
.site-footer { background: var(--navy-2); color: #93a8b0; padding: 48px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #c3d3d8; text-decoration: none; margin-left: 20px; }
.site-footer .brand { color: #fff; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero .wrap, .grid-2, .founder, .walk { grid-template-columns: 1fr; }
  .walk { gap: 20px; margin-top: 40px; }
  .grid-3, .grid-4, .lifecycle { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tiles { max-width: 360px; }
  .founder img { width: 180px; height: 180px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .lifecycle, .steps, .form-row { grid-template-columns: 1fr; }
  .demo-figures { grid-template-columns: 1fr; }
  .site-footer a { margin: 0 16px 0 0; }
}

/* ===== Home, version 3: product-led ===== */
.audience { margin-top: 22px; font-size: .92rem; color: #93a8b0; }

/* hero: the real product view with the scenario control over it */
.hero-product { position: relative; }
.hero-shot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.28); }
.hero-shot img { width: 100%; }
/* HP-01's tile in hero-product.jpg (990 × 410): left 28, top 224, 110 × 37 */
.plot-mark { position: absolute; left: 2.6%; top: 54.2%; width: 11.4%; height: 9.6%; border: 3px solid transparent; border-radius: 8px; transition: border-color .3s, box-shadow .3s; }
.plot-mark em { position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--sand); color: var(--navy-2); padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
.hero-product.delayed .plot-mark { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(212,179,130,.35); }
.hero-product.delayed .plot-mark em { opacity: 1; }
.scenario { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; margin: -36px 16px 0 auto; position: relative; width: min(420px, calc(100% - 32px)); box-shadow: 0 16px 34px rgba(0,0,0,.25); }
.scenario-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.scenario-head > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scenario .demo-figures { margin-top: 12px; }
.hero-product.delayed .demo-figures b { color: #8a5a12; }
.hero-product figcaption { font-size: .78rem; color: #93a8b0; margin-top: 12px; }

/* the worked example */
.example { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; margin-top: 32px; align-items: start; }
.example table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.example th, .example td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.example thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.example tbody th { text-align: left; font-weight: 600; }
.example td.up, .example td.down { font-weight: 700; color: #b42318; }
.example-table { overflow-x: auto; }
.why h3 { margin-bottom: 14px; }
.why ol { padding-left: 1.2em; margin: 0 0 16px; }
.why li { margin-bottom: 12px; }

/* connected workflow */
.flow { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.flow:first-of-type { margin-top: 24px; }
.step { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.flow figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.flow-stack { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: 652fr 337fr; gap: 14px; }
.zoomable img { border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.compare { display: grid; gap: 10px; }
.compare div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; background: #fff; border-radius: 10px; }
.compare small { color: var(--muted); font-weight: 600; }
.compare b { font-family: var(--display); font-size: 1.25rem; color: var(--navy-2); white-space: nowrap; }
.compare i { font-style: normal; color: var(--sand); padding: 0 4px; }
.text-link { font-weight: 600; text-decoration: none; }

/* Finance and Development */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 28px; }
.two-col h3 { padding-bottom: 10px; border-bottom: 3px solid var(--teal); display: inline-block; margin-bottom: 18px; }
.two-col > div:last-child h3 { border-color: var(--sand); }

/* outputs */
.outputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; margin: 28px 0 20px; }
.outputs div { background: var(--navy); padding: 24px; }
.outputs b { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.outputs span { color: #b7c7cd; font-size: .93rem; }

/* trust and founder */
.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.founder-mini { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; background: var(--bg-soft); border-radius: 14px; padding: 26px; }
.founder-mini img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.founder-mini .who { font-size: .88rem; color: var(--muted); margin: 0; }

/* getting started: phase bands, PloTwin's own motif */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.phases .band { display: block; height: 10px; border-radius: 5px; background: var(--teal); margin-bottom: 18px; }
.phases div:nth-child(1) .band { width: 30%; }
.phases div:nth-child(2) .band { width: 75%; margin-left: 10%; background: #5fa8a0; }
.phases div:nth-child(3) .band { width: 40%; margin-left: 45%; background: var(--sand); }
.phases b { font-family: var(--display); font-size: 1.15rem; display: block; margin-bottom: 6px; }
.phases p { color: var(--muted); margin: 0; }

/* enlarge a screenshot */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,36,51,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 8px; background: #fff; }

@media (max-width: 900px) {
  .example, .flow, .two-col, .trust { grid-template-columns: 1fr; gap: 24px; }
  .outputs { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr; }
  .scenario { margin: -24px auto 0; }
}
@media (max-width: 560px) {
  .outputs, .pair { grid-template-columns: 1fr; }
  .founder-mini { grid-template-columns: 1fr; }
  .example th, .example td { padding: 10px 6px; font-size: .88rem; }
  .compare b { font-size: 1.05rem; }
}

/* pricing questions */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.faq dl { margin: 0; }
.faq dt { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--navy-2); margin-top: 22px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
.form-done h3 { margin-bottom: 4px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 16px; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 28px; }
.stats p { margin: 6px 0 0; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; gap: 24px; } }
/* hero: give the product more room than the words */
.hero { padding: 72px 0 72px; }
.hero .wrap { grid-template-columns: .8fr 1.2fr; gap: 44px; }
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.hero .lead { font-size: 1.1rem; }
.wrap.wide { max-width: 1280px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* 3D twin sample */
.twin-page { padding: 48px 0 56px; }
.twin-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.twin-app { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 24px; }
.twin-stage { position: relative; height: min(68vh, 640px); min-height: 420px; border-radius: 14px; overflow: hidden; background: #eef3f4; border: 1px solid var(--line); touch-action: none; }
.twin-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.twin-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; pointer-events: none; }
.twin-toolbar > * { pointer-events: auto; }
.twin-toolbar .demo-toggle { background: #fff; box-shadow: 0 4px 12px rgba(15,36,51,.12); }
.chip { border: 0; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--navy-2); cursor: pointer; box-shadow: 0 4px 12px rgba(15,36,51,.12); }
.twin-legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 10px; padding: 8px 12px; font-size: .75rem; color: var(--ink); max-width: calc(100% - 24px); }
.twin-legend div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.twin-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.twin-legend i:first-child { margin-left: 0; }
.district-label, .plot-label { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; z-index: 1; }
.district-label { font-family: var(--display); font-weight: 800; font-size: 1rem; color: rgba(19,50,73,.55); text-transform: uppercase; letter-spacing: .12em; }
.plot-label { font-size: .7rem; font-weight: 700; color: var(--navy-2); background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 5px; }
.twin-side { display: grid; gap: 14px; align-content: start; }
.year-box, .plot-card { background: var(--bg-soft); border-radius: 14px; padding: 18px; }
.year-row { display: flex; justify-content: space-between; align-items: baseline; }
.year-row span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.year-row b { font-family: var(--display); font-size: 1.8rem; color: var(--navy-2); }
.year-box input[type=range] { width: 100%; padding: 0; border: 0; accent-color: var(--teal); margin: 6px 0 12px; }
.year-box .btn { width: 100%; padding: 10px; }
.year-box p { margin: 10px 0 0; }
.plot-card { min-height: 260px; }
.card-head b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--navy-2); line-height: 1.1; }
.card-head span { color: var(--muted); font-size: .9rem; }
.plot-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: .92rem; }
.plot-card dt { color: var(--muted); }
.plot-card dd { margin: 0; text-align: right; font-weight: 700; color: var(--navy-2); }
.plot-card .source { margin-top: 12px; }
.hint { margin: 0; }
@media (max-width: 900px) {
  .twin-app { grid-template-columns: 1fr; }
  .twin-stage { height: 58vh; min-height: 360px; }
}
[hidden] { display: none !important; }
.teaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.teaser-shot img { border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.3); transition: transform .3s; }
.teaser-shot:hover img { transform: translateY(-3px); }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; gap: 24px; } }

/* output samples */
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0 16px; }
.sample-open { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; }
.sample-open img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .3s; }
.sample-open:hover img { transform: scale(1.03); }
.sample figcaption { margin-top: 12px; }
.sample figcaption b { display: block; font-family: var(--display); font-size: 1.1rem; color: #fff; }
.sample figcaption span { display: block; color: #b7c7cd; font-size: .9rem; margin: 4px 0 6px; }
.sample-link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-bright); cursor: pointer; }
.lb-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 6px 10px; }
.lb-nav button { border: 0; background: var(--teal); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lb-nav span { font-weight: 600; color: var(--navy-2); min-width: 44px; text-align: center; }
@media (max-width: 900px) { .samples { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .samples { grid-template-columns: 1fr; } }

/* v6: hero labels, a compact second action, a tighter first screen on phones, a close button in the viewer */
.hero-link { align-self: center; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.hero-link:hover { border-color: var(--sand); }
.shot-label { position: absolute; top: 10px; right: 10px; background: rgba(15,36,51,.82); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.hero-product.delayed .scenario-head > span { color: #8a5a12; }
.lb-close { position: absolute; top: 16px; right: 16px; border: 0; background: #fff; color: var(--navy-2); font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 1; }
@media (max-width: 560px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .lead { font-size: 1rem; margin-bottom: 0; }
  .lead-more, .audience { display: none; }
  .hero .actions { margin-top: 18px; gap: 16px; }
  .hero .wrap { gap: 28px; }
  .shot-label { font-size: .64rem; top: 6px; right: 6px; }
}

/* the PloTwin logo (raster wordmark from the brand artwork) */
.site-header .brand img { height: 30px; width: auto; }
.site-footer .brand img { height: 48px; width: auto; }
@media (max-width: 560px) { .site-header .brand img { height: 26px; } }

/* v8: the 3D masterplan in the hero; a still image first, the live scene fades in over it */
.hero3d { aspect-ratio: 908 / 500; background: #eef3f4; }
.hero3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.hero3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; cursor: grab; }
.hero3d.live canvas { opacity: 1; }
.hero3d.live .hero3d-poster { opacity: 0; }
.hero3d .district-label { font-size: .78rem; }
.hero3d .plot-label { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); font-size: .72rem; padding: 2px 8px; transition: color .3s, border-color .3s; }
.hero3d .plot-label.moved { color: #8a5a12; border-color: var(--sand); background: #fbf3e4; }
.hero3d-open { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(15,36,51,.82); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.hero3d-open:hover { background: var(--teal); }
.hero3d-year { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; align-items: baseline; gap: 8px; background: rgba(255,255,255,.92); color: var(--navy-2); padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,36,51,.12); font-size: .74rem; font-weight: 600; }
.hero3d-year b { font-family: var(--display); font-size: 1rem; font-variant-numeric: tabular-nums; }
.hero3d-year.moved span { color: #8a5a12; }
.example-shot { margin: 40px 0 0; }
.example-shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(15,36,51,.10); cursor: zoom-in; }
.example-shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) {
  .hero3d-open, .hero3d-year { top: 6px; font-size: .66rem; padding: 4px 9px; }
  .hero3d-open { right: 6px; } .hero3d-year { left: 6px; }
  .hero3d-year b { font-size: .85rem; }
  .hero3d { aspect-ratio: 4 / 3; }
  .hero3d .district-label { font-size: .62rem; }
}
