/* PennyTalk 3.0 — "Said and done"
   A voice-first expense tracker for older adults and their family.
   Signature: a spoken sentence resolving into a tidy expense.  */

:root {
  --ink:        #0B4F4A;   /* deep teal — grounding, headings-on-dark, footer */
  --teal:       #0D9488;   /* the app's brand teal */
  --teal-deep:  #0B605A;   /* eyebrows, links, icon strokes */
  --paper:      #FBF7F0;   /* warm off-white page */
  --paper-2:    #F4EDE1;   /* banded sections */
  --coral:      #EE7B5B;   /* the parse-mark — used only to mark spoken tokens */
  --coral-ink:  #B84a2c;   /* coral text where contrast is needed */
  --card:       #FFFFFF;
  --text:       #1C2B2A;
  --muted:      #5B7370;
  --line:       #E4DAC9;   /* hairline on paper */
  --mint:       #E7F1EE;   /* soft chip / tint */
  --radius:     20px;
  --radius-lg:  30px;
  --shadow:     0 24px 48px -28px rgba(11,79,74,.45);
  --shadow-sm:  0 10px 24px -18px rgba(11,79,74,.5);
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;            /* ~18.4px base — legible for older eyes */
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tint  { background: var(--paper-2); }
.section--ink   { background: var(--ink); color: #EAF4F1; }
.section--ink h2, .section--ink h3 { color: #FFFFFF; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }
.section--ink .section-head p { color: #B9D6D0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces',serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem; }
.topnav a:hover { color: var(--teal-deep); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 15px 26px; border-radius: 999px;
  font-family: 'Hanken Grotesk',sans-serif; font-weight: 600; font-size: 1.06rem;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -18px rgba(11,79,74,.6); }
.btn img { height: 22px; width: auto; }
.btn .apple { width: 19px; height: 22px; flex: 0 0 auto; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 84px; text-align: center; overflow: hidden; }
.hero .listening {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--mint); color: var(--teal-deep);
  font-family: 'Space Mono',monospace; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 30px;
}
.hero .listening .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.4s infinite ease-in-out; }
.hero .listening .dot:nth-child(2){ animation-delay: .2s; }
.hero .listening .dot:nth-child(3){ animation-delay: .4s; }

.phrase {
  font-family: 'Fraunces',serif; font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 4.1rem);
  line-height: 1.14; color: var(--ink);
  max-width: 15ch; margin: 0 auto;
  animation: rise .7s .1s both cubic-bezier(.2,.7,.2,1);
}
.phrase .quote { color: var(--coral); font-style: normal; }

/* the parse-mark: a coral highlighter sweep behind spoken tokens */
.token { position: relative; white-space: nowrap; }
.token::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .34em;
  background: var(--coral); opacity: .5; border-radius: 4px; z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: sweep .5s both ease;
}
.token--amount::after { animation-delay: 1.0s; }
.token--category::after { animation-delay: 1.28s; }

.connector { margin: 26px auto 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fade .5s 1.5s both; }
.connector .arrow { width: 2px; height: 34px; background: linear-gradient(var(--coral), transparent); }
.connector .said { font-family: 'Space Mono',monospace; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--coral-ink); }

.entry-card {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--card); border-radius: var(--radius);
  padding: 20px 30px 20px 22px; box-shadow: var(--shadow);
  animation: rise .6s 1.65s both cubic-bezier(.2,.7,.2,1);
  text-align: left;
}
.entry-card .emoji { font-size: 1.7rem; background: var(--mint); width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.entry-card .cat { font-weight: 600; font-size: 1.15rem; color: var(--text); }
.entry-card .when { color: var(--muted); font-size: .95rem; }
.entry-card .amt { font-family: 'Fraunces',serif; font-weight: 600; font-size: 1.7rem; color: var(--ink); margin-left: 14px; }
.entry-card .check {
  position: absolute; top: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(13,148,136,.8);
  animation: pop .4s 2.15s both cubic-bezier(.2,1.5,.4,1);
}

.hero .lede { max-width: 40ch; margin: 40px auto 0; font-size: 1.24rem; color: var(--text); animation: fade .6s 1.9s both; }
.hero .cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: fade .6s 2.05s both; }
.hero .fine { font-family: 'Space Mono',monospace; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- feature bands ---------- */

.band-label { display: flex; align-items: center; gap: 14px; max-width: var(--maxw); margin: 0 auto 34px; }
.band-label .tag { font-family: 'Space Mono',monospace; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.band-label .tag--free { background: var(--mint); color: var(--teal-deep); }
.band-label .tag--pro { background: var(--ink); color: #fff; }
.band-label .rule { height: 1px; background: var(--line); flex: 1; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--teal-deep); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.4rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* ---------- privacy band (ink) ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 40px; max-width: 900px; margin: 44px auto 0; }
.promise { display: flex; gap: 15px; align-items: flex-start; }
.promise .mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; margin-top: 3px; }
.promise .mark svg { width: 17px; height: 17px; stroke: #6FE3D0; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promise b { color: #fff; font-weight: 600; }
.promise span { display: block; color: #B9D6D0; font-size: 1.02rem; line-height: 1.5; }

/* ---------- screenshots ---------- */

.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 24px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 240px; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- final CTA ---------- */

.closer { text-align: center; }
.closer h2 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.closer .cta-row { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closer .fine { font-family: 'Space Mono',monospace; font-size: .82rem; color: #9FC7C0; letter-spacing: .02em; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #9FC7C0; padding: 40px 0; text-align: center; }
.foot a { color: #EAF4F1; text-decoration: none; margin: 0 14px; font-weight: 500; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 20px 0 0; font-size: .95rem; }

/* ---------- content pages (support / privacy) ---------- */

.page-head { background: var(--ink); color: #EAF4F1; text-align: center; padding: 64px 0 72px; }
.page-head img.logo { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.page-head h1 { color: #fff; font-size: clamp(2.4rem,6vw,3.4rem); }
.page-head .eyebrow { color: #6FE3D0; margin-bottom: 14px; }

.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.prose h2 { font-size: 1.9rem; margin: 8px 0 24px; }
.prose h3 { font-size: 1.35rem; color: var(--ink); margin: 40px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.updated { display: inline-block; font-family: 'Space Mono',monospace; font-size: .85rem; color: var(--teal-deep); background: var(--mint); padding: 8px 14px; border-radius: 10px; margin-bottom: 30px; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.15rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Space Mono',monospace; color: var(--teal); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.callout { background: var(--mint); border-radius: var(--radius); padding: 26px 30px; }
.callout--warn { background: #FBEAE2; }
.callout b { color: var(--ink); }
.back-link { display: inline-block; margin-top: 26px; color: #fff; background: rgba(255,255,255,.14); padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.back-link:hover { background: rgba(255,255,255,.24); }

/* ---------- motion primitives ---------- */

@keyframes rise  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop   { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- accessibility floor ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .token::after { transform: scaleX(1); }
  .entry-card, .phrase, .hero .lede, .hero .cta-row, .connector, .entry-card .check { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 1.1rem; }
  .section { padding: 68px 0; }
  .topnav { gap: 16px; font-size: .95rem; }
  .topnav a.hide-sm { display: none; }
  .grid, .privacy-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 16px 20px; gap: 14px; }
  .entry-card .amt { font-size: 1.4rem; }
  .hero { padding: 48px 0 60px; }
}
