/* PennyFill design system
   Layout: one generous column; teal hero band with Penny, cream and white bands below,
   a dark forecourt price board as the signature piece. */
:root {
  /* Colour: from Penny's logo — deep teal outline, copper penny, cream highlights */
  --teal-950: #052b26;
  --teal-900: #073a33;
  --teal: #0b5b4f;
  --teal-600: #137565;
  --teal-50: #e6f2ee;
  --copper: #c4652f;
  --copper-600: #a9521f;
  --copper-200: #f3c9a4;
  --copper-50: #fbeee3;
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --ink: #15241f;
  --muted: #5b6a64;
  --line: #e9e1d2;
  --wa: #25d366;
  --wa-ink: #063b1e;
  --chat-bg: #efe7dc;
  --me: #d9fdd3;
  --led: #ffb547;
  --ok: #157a50;
  --warn: #9a6400;
  --bad: #b3261e;

  /* Type: rounded display like the wordmark, a friendly text face, Penny's handwriting */
  --font-display: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --font-led: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(7, 58, 51, .06), 0 10px 30px rgba(7, 58, 51, .08);
  --shadow-lg: 0 30px 70px rgba(5, 43, 38, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .45em; text-wrap: balance; color: var(--teal-900); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.hand { font-family: var(--font-hand); font-weight: 600; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 238, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--teal); }
.nav nav a.btn { color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.45rem/1 var(--font-display); color: var(--teal-900); letter-spacing: -.01em; }
.logo-mark { width: 44px; height: 44px; object-fit: contain; transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo .fill { color: var(--copper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--copper); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 22px; font: 800 1rem/1.1 var(--font-display); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--copper-600); transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--copper-600); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--teal-900); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-light { background: var(--paper); color: var(--teal-900); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 2px 0 #1aa851; }
.btn-wa:hover { background: #1fbf5b; }
.btn-danger { background: var(--bad); box-shadow: 0 2px 0 #7f1a14; }
.btn-danger:hover { background: #941f18; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--teal-600), transparent 60%), var(--teal-900); color: #e8f3ef; padding: 64px 0 88px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 36px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--copper-200); }
.hero .lead { color: #cfe5de; font-size: 1.2rem; max-width: 33em; }
.hero .eyebrow { color: var(--copper-200); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: #b9d6cd; font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--copper-200); font-weight: 800; margin-right: 6px; }
.hero-stage { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-penny { position: absolute; right: -52px; top: -44px; width: 118px; z-index: 2; filter: drop-shadow(0 14px 22px rgba(0,0,0,.3)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ---------- Phone / chat ---------- */
.phone { background: var(--chat-bg); border-radius: 34px; border: 10px solid #101614; box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; max-width: 380px; margin: 0 auto; }
.phone-top { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; padding: 12px 14px; }
.phone-top strong { font-family: var(--font-display); }
.phone-top .small { opacity: .8; font-size: .75rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); object-fit: contain; padding: 2px; }
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.45; color: var(--ink); }
.bubble { max-width: 86%; padding: 8px 11px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.bubble.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.me { background: var(--me); align-self: flex-end; border-top-right-radius: 2px; }
.bubble .link, .bubble a { color: #027eb5; }
.bubble.voice { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.bubble.voice-reply audio { width: 230px; max-width: 100%; height: 36px; }
.bubble.voice-reply .said, .bubble .said { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.play { color: #54656f; }
.wave { flex: 1; height: 16px; background: repeating-linear-gradient(90deg, #8aa79a 0 2px, transparent 2px 5px); border-radius: 2px; }
.wave.penny { background: repeating-linear-gradient(90deg, #c98a63 0 2px, transparent 2px 5px); }

/* ---------- Penny's note (handwritten card) ---------- */
.note-band { padding: 36px 0 12px; }
.penny-note {
  position: relative; max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: 6px;
  padding: 28px 30px 24px 92px; box-shadow: var(--shadow); transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(transparent 0 33px, #eadfcd 33px 34px);
}
.penny-note img { position: absolute; left: 18px; top: 22px; width: 58px; }
.penny-note p { font: 600 1.75rem/1.2 var(--font-hand); color: var(--teal-900); margin: 0; }
.penny-note .sign { display: block; text-align: right; color: var(--copper); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--copper-50); color: var(--copper); border: 2px solid var(--copper-200); font: 900 1.15rem/1 var(--font-display); display: grid; place-items: center; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
.step .say { display: block; margin-top: 12px; font: 600 1.3rem/1.2 var(--font-hand); color: var(--teal); }

/* ---------- Forecourt price boards ---------- */
.boards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.board { background: #121614; color: #e9efe9; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg); border: 6px solid #2a302d; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #2c3431; padding-bottom: 10px; margin-bottom: 14px; }
.board-head strong { font: 800 1.05rem var(--font-display); }
.board-head span { color: #8fa39b; font-size: .82rem; }
.board-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 0; }
.board-row .label { font-size: .92rem; color: #b8c7c1; }
.board-row .label b { display: block; color: #fff; font-family: var(--font-display); font-size: 1rem; }
.led { font: 700 2.1rem/1 var(--font-led); color: var(--led); text-shadow: 0 0 12px rgba(255, 181, 71, .45); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.led.dim { color: #7c6a4d; text-shadow: none; font-size: 1.7rem; }
.led small { font-size: .45em; color: #a88a5c; margin-left: 4px; }
.board-save { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #1d2a25; color: #d5ece2; font-size: .95rem; }
.board-save b { color: #8ff0bf; }
.pick { display: inline-block; font: 800 .7rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; background: var(--copper); color: #fff; padding: 4px 7px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.board-note { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--teal-50); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price-wrap > * { min-width: 0; }
.price-card { background: var(--paper); border: 2px solid var(--teal); border-radius: 26px; padding: 36px; box-shadow: var(--shadow); position: relative; }
.price-card .tag { position: absolute; top: -14px; left: 28px; background: var(--copper); color: #fff; font: 800 .8rem/1 var(--font-display); padding: 7px 12px; border-radius: 999px; }
.price { font: 900 3.6rem/1 var(--font-display); color: var(--teal-900); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.price span { font-size: 1.05rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-alt { color: var(--muted); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230b5b4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq summary { font: 800 1.05rem var(--font-display); cursor: pointer; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.closing { background: var(--teal-900); color: #dcefe8; text-align: center; padding: 72px 0; }
.closing h2 { color: #fff; }
.closing img { width: 96px; margin-bottom: 12px; }
.closing .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-950); color: #a9c4bb; padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
.footer a { color: #d7ebe4; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 900 1.15rem var(--font-display); }
.footer-brand img { width: 34px; height: 34px; }
.footer .tagline { font: 600 1.35rem var(--font-hand); color: var(--copper-200); }

/* ---------- Forms, cards, app pages ---------- */
.auth { padding: 56px max(20px, env(safe-area-inset-left, 0px)) 88px; display: grid; place-items: center; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.highlight { border: 2px solid var(--teal); margin: 24px 0; }
.form { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.form h1 { font-size: 2.2rem; margin-bottom: 0; }
.form-penny { display: flex; gap: 12px; align-items: center; background: var(--copper-50); border-radius: var(--radius-sm); padding: 12px 14px; }
.form-penny img { width: 44px; flex: none; }
.form-penny span { font: 600 1.3rem/1.15 var(--font-hand); color: var(--teal-900); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--teal-900); }
input, select {
  font: 400 1rem var(--font-body); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 91, 79, .14); }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin: 12px 0; }
.alert.error { background: #fdecea; color: #8a1c12; }
.alert.success { background: #e5f5ec; color: #0b5d34; }
.badge { display: inline-block; font: 800 .8rem var(--font-display); padding: 5px 11px; border-radius: 999px; background: #f1ece2; color: var(--muted); margin-bottom: 12px; }
.badge.ok { background: #e5f5ec; color: var(--ok); }
.badge.warn { background: #fff2d6; color: var(--warn); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > * { min-width: 0; }
.grid-2 .form { max-width: none; }
.danger-zone { margin-top: 28px; box-shadow: none; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: #8a1c12; }
.danger-zone .form { margin-top: 12px; max-width: 360px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 20px; color: #e3f1ec; }
.hl { color: inherit; }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* Simulator */
.sim-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.sim-wrap > * { min-width: 0; }
.phone.sim { display: flex; flex-direction: column; height: 660px; }
.phone.sim .chat { flex: 1; overflow-y: auto; }
.composer { display: flex; gap: 6px; padding: 8px; background: #f0f0f0; align-items: center; }
.composer input { border-radius: 999px; padding: 10px 14px; border: 0; }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.icon-btn.send { background: #00a884; color: #fff; }
.icon-btn.recording { background: #e53935; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.wa-action { display: block; width: 100%; margin-top: 8px; padding: 9px; border: 0; border-top: 1px solid #e9edef; background: transparent; color: #027eb5; font: 600 .9rem var(--font-body); cursor: pointer; }
.wa-action:hover { background: #f5f6f6; }
.wa-list { border-top: 1px solid #e9edef; margin-top: 4px; }
.wa-row { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid #f0f2f5; background: transparent; text-align: left; font: .85rem var(--font-body); cursor: pointer; color: var(--ink); }
.wa-row:hover { background: #f5f6f6; }
.wa-row span { color: var(--muted); font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid, .sim-wrap, .price-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-penny { right: -4px; top: -38px; width: 84px; }
  .hero-stage { margin-top: 24px; }
  .steps, .features, .grid-2, .boards { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hide-sm { display: none; }
  .nav nav { gap: 14px; }
  .price-card { padding: 30px 22px; }
  .penny-note { padding: 22px 20px 20px 80px; }
  .penny-note p { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .nav-inner { height: 64px; }
  .logo { font-size: 1.2rem; }
  .logo-mark { width: 36px; height: 36px; }
  .nav nav a:not(.btn) { display: none; }
  .led { font-size: 1.7rem; }
}
