/* Otti. Layout and feel after corgi.insure (23.09.2026): light page between two rails, centred hero,
   hard-edged buttons, white cards, one dark band. Palette and type from the 01 Editorial brief
   in ~/Desktop/otti/WEBSITE-HANDOFF.md. */
:root {
  color-scheme: light;
  --sea: #1E5B5E;
  --sea-deep: #164446;
  --otter: #7A5236;
  --belly: #F5EDE0;
  --pebble: #F0B64A;
  --ink: #2A1F17;
  --ink2: #6B5D52;
  --paper: #FFFFFF;
  --bg: #FAF6EF;
  --line: #E4D9C8;
  --tag: #E3ECEA;
  --wrap: 1180px;
  --section: 128px;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
body::before { content: ""; position: fixed; inset: 0; width: min(var(--wrap), 100%); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; z-index: 0; }
main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-weight: 500; font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 1.02; letter-spacing: -0.035em; }
h1 em, h2 em { color: var(--sea); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 30ch; text-wrap: balance; }
h3 { font-weight: 500; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; }
.muted { color: var(--ink2); }
.footnote { font-size: 0.875rem; }
.lead { font-size: 1.1875rem; color: var(--ink2); max-width: 44ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 56px; }
.band { padding: var(--section) 0; }
.band { border-top: 1px solid var(--line); }
.caps { font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink2); }
.caps::before { content: ""; display: block; width: 24px; height: 2px; background: var(--pebble); margin-bottom: 16px; }
.eyebrow { color: var(--sea); font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

/* Buttons with a hard bottom edge, like Corgi's, in Pebble */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pebble); color: var(--ink); border: 0; border-radius: 8px; padding: 12px 22px; font: 500 0.9375rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 #C98A12; transition: transform 80ms, box-shadow 80ms; }
.button:hover { transform: translateY(1px); box-shadow: 0 2px 0 #C98A12; }
.button:active { transform: translateY(3px); box-shadow: none; }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }
.button.black { background: var(--sea); color: var(--belly); box-shadow: 0 3px 0 #0F3436; }
.button.black:hover { box-shadow: 0 2px 0 #0F3436; }
.button.block { display: flex; width: 100%; }
.dead { color: #B3A596; cursor: default; }

/* Top: draft strip, then wordmark, CTA and the three-line menu */
.draft { margin: 0; text-align: center; padding: 8px 24px; font-size: 0.8125rem; background: var(--sea); color: var(--belly); position: relative; z-index: 6; }
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 32px; }
.wordmark { display: inline-flex; align-items: flex-end; gap: 8px; font: 600 2rem/1 var(--serif); letter-spacing: -0.03em; color: var(--sea); font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
.wordmark img { width: 54px; height: auto; margin-bottom: 2px; }
.top .right { display: flex; align-items: center; gap: 16px; }
.top .right .button { padding: 11px 20px; font-size: 0.875rem; }
.burger { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 150ms, opacity 150ms; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.panel { display: none; border-top: 1px solid var(--line); padding: 0 32px 24px; max-height: calc(100vh - 110px); overflow-y: auto; }
.menu-open .panel { display: block; }
.panel details { border-bottom: 1px solid var(--line); }
.panel summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 8px; font-size: 1rem; cursor: pointer; list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "⌄"; color: var(--ink2); transition: transform 150ms; }
.panel details[open] summary::after { transform: rotate(180deg); }
.panel .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 32px; padding: 4px 8px 20px; }
.panel .cols.two { grid-template-columns: 1fr 1fr; }
.panel .col { display: flex; flex-direction: column; }
.panel .col .n { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink2); padding: 8px 0; }
.panel .col a, .panel .col span:not(.n) { padding: 7px 0; font-size: 0.9375rem; }
.panel .col a:hover { color: var(--sea); }
.panel .actions { display: grid; gap: 12px; margin-top: 20px; }

/* Hero: centred like Corgi's, the otter floats bottom right, its pebble bottom left */
.hero { position: relative; overflow: hidden; max-width: var(--wrap); margin: 0 auto; min-height: min(820px, calc(100vh - 100px)); display: flex; align-items: flex-start; justify-content: center; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #F8F0E3 100%); }
.hero .inner { position: relative; z-index: 2; padding: 112px 24px 360px; }
.hero h1 { max-width: 13ch; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; max-width: 40ch; }
.hero .button { margin-top: 32px; }
.hero .otter { position: absolute; z-index: 1; right: -4%; bottom: 0; width: min(640px, 58%); height: auto; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 60%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 60% 60%, #000 55%, transparent 100%); }
.hero .pebble { position: absolute; z-index: 1; left: 7%; bottom: 72px; width: min(200px, 18%); height: auto; transform: rotate(-10deg); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 68%); }
.logos { overflow: hidden; padding: 32px 0; border-top: 1px solid var(--line); max-width: var(--wrap); margin: 0 auto; }
.logos .track { display: flex; gap: 88px; width: max-content; animation: marquee 48s linear infinite; }
.logos span { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink2); white-space: nowrap; }
.logos span:nth-child(3n+2) { font-family: var(--serif); font-style: italic; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos .track { animation: none; } }

/* Dark statement card with a sheet of paper, like Corgi's "Get a quote!" */
.statement { position: relative; overflow: hidden; background: var(--ink); color: var(--belly); border-radius: 20px; padding: 64px 56px; }
.statement p { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 28ch; }
.statement b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pebble); }
.statement .paper { position: absolute; right: 40px; bottom: -40px; width: 240px; height: 190px; background: #fff; transform: rotate(-24deg); border-radius: 4px; color: var(--ink); display: flex; align-items: center; justify-content: center; font: italic 400 1.5rem var(--serif); box-shadow: -16px -8px 0 #1c140e; }

/* Package cards: white top card on a light base, like Corgi's */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.package { background: #F4EDE2; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.package .top-card { position: relative; padding: 88px 24px 24px; border-radius: 20px; background: #fff; box-shadow: 0 6px 16px rgba(42,31,23,0.07); }
.package .top-card img { position: absolute; right: 8px; top: 8px; width: 132px; height: 132px; object-fit: cover; -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 70%); mask-image: radial-gradient(circle, #000 48%, transparent 70%); }
.package .top-card h3 { position: relative; }
.package .top-card p { position: relative; margin-top: 8px; font-size: 0.9375rem; color: var(--ink2); max-width: 30ch; }
.package .policies { padding: 24px; text-align: center; flex: 1; }
.package .policies p { font-size: 0.8125rem; color: var(--ink2); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags span { background: var(--tag); color: var(--sea); border-radius: 6px; padding: 3px 10px; font-size: 0.8125rem; font-weight: 500; }
.package .cta { padding: 0 12px 12px; }
.packages.three { grid-template-columns: repeat(3, 1fr); }
.packages.three .top-card { padding-top: 32px; }
.sub-head { margin-top: 96px; }

/* Advantage, dark band like Corgi's "Our Unique Advantage" */
.band.dark { background: var(--ink); color: var(--belly); border-top: 0; }
.band.dark h2 { margin: 0 auto; text-align: center; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.versus .card { background: #fff; color: var(--ink); border: 0; border-radius: 20px; padding: 0; overflow: hidden; }
.versus .visual { position: relative; height: 240px; overflow: hidden; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.versus .text { padding: 24px; }
.versus .text h3 { font-size: 1.25rem; }
.versus .text p { margin-top: 8px; color: var(--ink2); font-size: 0.9375rem; }
/* Traditional: a slow chain of steps above a stack of paper */
.versus .old { background: #F1ECE4; }
.versus .flow { position: absolute; left: -24px; right: -24px; top: 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.versus .flow span { position: relative; flex: none; border: 2px solid #E3A49B; background: #FBE7E3; color: #B0473A; border-radius: 10px; padding: 6px 14px; font-size: 0.8125rem; box-shadow: 0 0 0 3px #FBE7E3; }
.versus .flow span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 30px; border-top: 2px solid #E3A49B; }
.versus .doc { position: absolute; left: 50%; bottom: -36px; width: 62%; height: 150px; transform: translateX(-50%); background: #fff; border: 1px solid #E2DBD0; border-radius: 4px; padding: 18px 20px; box-shadow: 10px -8px 0 -1px #fff, 10px -8px 0 0 #E2DBD0, 20px -16px 0 -1px #fff, 20px -16px 0 0 #E2DBD0; }
.versus .doc p { font-size: 0.8125rem; color: #9C8F82; }
.versus .doc i { display: block; height: 10px; margin-top: 12px; background: #E9E3DA; border-radius: 2px; }
.versus .doc i.short { width: 60%; }
/* Otti: calm water narrowing to one point, the otter in the middle */
.versus .new { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.versus .new::before { content: ""; position: absolute; inset: 20px 0; background: linear-gradient(90deg, #7FB5B0 0%, var(--sea) 32%, var(--belly) 50%, var(--sea) 68%, var(--pebble) 100%); clip-path: polygon(0% 0%, 36% 32%, 64% 32%, 100% 0%, 100% 100%, 64% 68%, 36% 68%, 0% 100%); }
.versus .orb { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; background: var(--sea); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(245,237,224,0.35), 0 0 40px 10px rgba(240,182,74,0.45); }
.versus .orb img { width: 74px; }

/* Cards, advisor */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.grid4, .grid3, .grid2 { display: grid; gap: 24px; margin-top: 48px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 .card p.muted, .grid2 .card p.muted { margin-top: 12px; }
.person { border-radius: 18px; overflow: hidden; background: #EFE6D8; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; }
.person .photo { flex: 1; background-size: cover; background-position: center top; }
.person p { background: var(--belly); padding: 10px; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: var(--ink2); }
.advisor { display: grid; grid-template-columns: 15rem 1fr; gap: 48px; align-items: start; margin-top: 24px; }
.promises { list-style: none; margin: 16px 0 0; padding: 0; }
.promises li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.promises li:first-child { border-top: 0; }
.promises li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--pebble); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge { background: var(--tag); color: var(--sea); border-radius: 999px; padding: 6px 14px; font-size: 0.8125rem; font-weight: 500; }
.badge .stars { color: #C98A12; }
.step .n { color: var(--sea); font-size: 0.875rem; font-weight: 600; }
.step h3 { margin-top: 8px; }
.step p.muted { margin-top: 8px; }

/* Claims */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.875rem; color: var(--ink2); }
.chip.on { background: var(--sea); border-color: var(--sea); color: var(--belly); }
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.claims .card { padding: 28px; }
.claims h3 { font-size: 1.25rem; }
.claims p { margin-top: 8px; font-size: 0.9375rem; }
.claims .line { margin-top: 16px; }
.claims .line span { background: var(--tag); color: var(--sea); border-radius: 999px; padding: 4px 12px; font-size: 0.8125rem; font-weight: 500; }

/* Testimonials */
.reel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 48px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel figure { position: relative; flex: 0 0 min(640px, 85%); aspect-ratio: 16 / 9; scroll-snap-align: start; border-radius: 24px; overflow: hidden; background: var(--ink); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .over { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; color: #fff; background: linear-gradient(0deg, rgba(42,31,23,0.65), rgba(42,31,23,0) 60%); cursor: pointer; }
.reel .over h3 { max-width: 20ch; font-size: 1.5rem; }
.reel .play { width: 44px; height: 44px; border-radius: 50%; background: var(--pebble); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.reel figure.playing .over { display: none; }

/* Final CTA */
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.apply .mock { background: var(--sea); border-radius: 24px; padding: 36px 36px 0; }
.apply .mock .sheet { background: var(--belly); border-radius: 14px 14px 0 0; padding: 28px; }
.apply .mock h3 { font-size: 1.375rem; }
.apply .mock .opts { display: grid; gap: 10px; margin-top: 16px; }
.apply .mock .opts span { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 14px 16px; font-size: 0.9375rem; }
.apply .mock .opts span:first-child { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.apply h3 + p { margin-top: 12px; }
.apply .best { margin-top: 24px; }
.apply .button { margin-top: 32px; }

/* Subpages */
.page-hero { padding: 120px 0 72px; }
.page-hero .lead { margin-top: 24px; max-width: 56ch; }
.page-hero h1 { max-width: 18ch; }
.closing { position: relative; overflow: hidden; background: var(--sea); color: var(--belly); border-radius: 28px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { max-width: 16ch; }
.closing h2 em { color: var(--pebble); }

/* Get insured form */
.insure { max-width: 720px; }
.insure fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.insure input[type=radio], .insure input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path > span { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; cursor: pointer; }
.path b { font-weight: 500; font-size: 1.125rem; }
.path input:checked + span { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.insure .step { margin-top: 48px; }
.insure .step > .n { color: var(--ink); font-weight: 500; margin: 32px 0 12px; font-size: 1rem; }
.insure .step > .n:first-child { margin-top: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick > span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.875rem; cursor: pointer; }
.pick input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--belly); }
.pick input:focus-visible + span, .path input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 0.875rem; color: var(--ink2); }
input[type=email], input[type=text], textarea { width: 100%; margin-top: 4px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: transparent; }
.submit { margin-top: 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.result { margin: 0; }

footer { background: var(--ink); color: var(--belly); padding: 72px 0 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer .wordmark { color: var(--belly); }
footer .n { color: rgba(245,237,224,0.55); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
footer .cols a, footer .cols span:not(.wordmark) { display: block; margin: 0 0 6px; font-size: 0.875rem; }
footer .dead { color: rgba(245,237,224,0.4); }
footer .legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; font-size: 0.8125rem; color: rgba(245,237,224,0.55); flex-wrap: wrap; }

@media (max-width: 820px) {
  :root { --section: 80px; }
  .wrap { padding: 0 20px; }
  .top nav { padding: 0 16px; height: 64px; }
  .wordmark { font-size: 1.75rem; }
  .wordmark img { width: 44px; }
  .top .right .button { display: none; }
  .panel { padding: 0 16px 16px; }
  .panel .cols, .panel .cols.two { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero .inner { padding: 64px 20px 300px; }
  .hero .otter { width: 110%; right: -20%; }
  .hero .pebble { width: 96px; left: 4%; bottom: 24px; }
  .statement { padding: 40px 24px 160px; }
  .package .top-card img { width: 96px; height: 96px; }
  .packages, .packages.three, .versus, .apply, .grid2, .grid3, .claims, .advisor, .paths, .fields, footer .cols { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .closing { padding: 36px 24px; }
}
