/* The marketing pages: only what app.css lacks. app.css sits beside this file. */

:root { --warm: #f6f3ff; }

header nav { justify-content: flex-end; }
header > a { font-size: .9rem; color: var(--muted); }

/* Links that look like app.css's buttons */
a.button { display: inline-block; padding: .6rem 1.5rem; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: #fff; font-size: .95rem; }
a.button:hover { opacity: .8; text-decoration: none; }
a.button.secondary { background: var(--bg); border-color: var(--border); color: var(--ink); }
a.button.secondary:hover { background: var(--soft); opacity: 1; }
p.actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* The country lists on start.html and login.html */
.countries { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 34rem; }

/* The interest form */
.narrow.card form p label { display: block; min-width: 0; margin-bottom: .2rem; }
.narrow.card input, .narrow.card select, .narrow.card textarea { width: 100%; }
p.error { padding: .7rem 1rem; background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-small); }

@media (max-width: 40rem) {
  header nav { flex-basis: 100%; order: 1; justify-content: flex-start; }
}

/* Flags beside the country names on start.html and login.html: one height, each flag its own width */
img.flag { height: .9em; width: auto; margin-left: .4rem; vertical-align: -.05em; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
img.flag[src$="other.svg"] { height: 1em; border-radius: 0; box-shadow: none; }

/* Header: stays at the top on wider screens (on phones the links wrap and it would cover too much); Start is a pill */
@media (min-width: 40.01rem) {
  html { scroll-padding-top: 5rem; }
  body > header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
header nav a.cta { background: var(--ink); color: #fff; font-weight: 500; }
header nav a.cta:hover { background: var(--ink); opacity: .8; }

/* Footer: dark band */
body > footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; max-width: none; margin: 0; padding: 2rem max(1.5rem, calc((100% - 69rem) / 2)); border: 0; background: var(--ink); color: rgba(255, 255, 255, .6); font-size: .9rem; }
body > footer p { margin: 0; color: inherit; }
body > footer .owner a { color: #b9a6ff; }
body > footer a { color: #fff; }

/* The home page: full-width bands, content in .wrap */
main.landing { max-width: none; padding: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section.tint { background: var(--soft); }
.section.warm { background: var(--warm); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin: 1rem auto 0; }
main.landing h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.15; margin: 0; }
main.landing h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .4rem; }
main.landing p { margin: 0; }
main.landing ol li + li { margin-top: 0; }
main.landing .eyebrow { margin-bottom: .75rem; color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 1.15rem; max-width: 38rem; }

/* Hero */
.intro { padding: 4.5rem 0; background: var(--warm); overflow: hidden; }
.intro-grid { display: grid; gap: 3rem; align-items: center; }
.intro-copy { display: grid; gap: 1.25rem; justify-items: start; }
.intro h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.tag { padding: .3rem .9rem; border-radius: 24px; background: var(--accent-soft); color: #5a32e0; font-size: .85rem; font-weight: 600; }
.intro-visual { position: relative; }
@media (min-width: 60rem) {
  .intro-grid { grid-template-columns: 1fr 1.1fr; }
  .intro-visual { padding: 0 5rem 9rem 0; }
  .intro-visual .phone { position: absolute; right: 0; bottom: 0; }
}

/* "Made for" strip */
.strip { border-bottom: 1px solid var(--border); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: center; padding: 1.75rem 1.5rem; }
.strip p { color: var(--muted); font-weight: 500; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.strip li { padding: .3rem .9rem; border-radius: 24px; background: var(--soft); font-size: .9rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.features li { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.features li:nth-child(3n + 2) .icon { background: var(--ink); color: #fff; }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Copy beside a picture */
.split { display: grid; gap: 3rem; align-items: center; }
.split-copy { display: grid; gap: 1rem; align-content: start; }
main.landing .split-copy .eyebrow { margin-bottom: -.25rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
  .split.flip .split-copy { order: 2; }
}
.ticks { display: grid; gap: .6rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: .4rem; top: .38rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Drawn screens, with invented data */
.mock { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -12px rgba(0, 0, 0, .2); overflow: hidden; font-size: .85rem; }
.chrome { display: flex; gap: .35rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.chrome i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--border); }
.chrome span { margin-left: .6rem; }
.review-mock { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem; background: var(--soft); }
.scan { display: grid; gap: .45rem; align-content: start; padding: .9rem .75rem; background: #fff; border-radius: var(--radius-small); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); transform: rotate(-1.5deg); }
.scan b { height: .7rem; width: 60%; background: var(--ink); border-radius: 2px; opacity: .7; margin-bottom: .3rem; }
.scan i { height: .3rem; background: var(--border); border-radius: 2px; }
.scan i:nth-child(3n) { width: 70%; }
.review-mock ol, .lines-mock { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.lines-mock { padding: 1rem; background: var(--soft); }
.review-mock li { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .55rem .75rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-small); }
.review-mock li small { grid-row: 2; color: var(--muted); }
.review-mock li b, .lines-mock li b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.lines-mock li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-small); }
.lines-mock li small { display: block; color: var(--muted); }
.review-mock li.flagged, .lines-mock li.flagged { border-color: #e5a000; background: #fffaeb; }
.review-mock li.flagged small, .lines-mock li.flagged small { color: #8a5a00; }
.lines-mock li.total { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.phone { width: 13rem; margin: 1.5rem auto 0; padding: .5rem; border-radius: 2rem; background: var(--ink); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .4); }
.screen { display: grid; gap: .5rem; padding: 1.25rem .9rem 1rem; border-radius: 1.6rem; background: #fff; font-size: .8rem; }
.screen small { color: var(--muted); margin-bottom: .25rem; }
.screen .pick { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .65rem; border-radius: var(--radius-small); background: var(--accent-soft); color: var(--ink); }
.screen .pick em { font-style: normal; font-weight: 600; color: var(--accent); }
.screen .done { padding: .5rem; border-radius: 24px; background: #d6fff1; color: #0b6b4a; text-align: center; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding: 1.75rem; border-radius: var(--radius); background: var(--soft); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; }

/* Questions */
.faq { display: grid; gap: .75rem; max-width: 48rem; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-small); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.1rem; }

/* Closing call to action */
.cta-band { padding: 0 0 5rem; }
.panel { display: grid; gap: 1rem; justify-items: center; padding: 4rem 1.5rem; border-radius: 28px; text-align: center; background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .18) 0 5rem, transparent 5.05rem), radial-gradient(circle at 92% 85%, rgba(0, 0, 0, .18) 0 7rem, transparent 7.05rem), var(--accent); }
.panel h2 { color: #fff; max-width: 20ch; }
main.landing .panel p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.panel p.actions { justify-content: center; }
a.button.light { background: #fff; border-color: #fff; color: var(--ink); }
a.button.outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
a.button.outline:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
main.landing p.actions { margin-top: .5rem; }
main.landing a.button { padding: .8rem 1.75rem; font-size: 1rem; }

@media (max-width: 40rem) {
  body > footer { padding: 2rem 1rem; }
  .section { padding: 3.5rem 0; }
  .wrap { padding: 0 1rem; }
  .intro { padding-top: 3rem; }
  .review-mock { grid-template-columns: 1fr; }
  .scan { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
