/* FareLedger website. Same colours as the app and the logo. */
:root {
  --green: #0a5f55;
  --green-dark: #07473f;
  --green-tint: #e1eeea;
  --gold: #f0b64b;
  --cream: #f3f1ec;
  --card: #ffffff;
  --text: #1c1d1a;
  --muted: #5f605b;
  --border: #e4e1da;
  --radius: 22px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: clip; }
a { color: var(--green); }
h1, h2, h3 { font-family: "Poppins", "Inter", system-ui, sans-serif; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(243, 241, 236, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
header.site .logo img { height: 40px; width: auto; }
nav.links { display: flex; gap: 26px; align-items: center; }
nav.links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav.links a:hover { color: var(--green); }
nav.links a:not(.btn) { padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.links a.active { color: var(--green); border-bottom-color: var(--gold); }
nav.links a.btn, nav.links a.btn:hover { color: #fff; }
@media (max-width: 820px) { nav.links a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 0; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-small { white-space: nowrap; padding: 9px 16px; font-size: 0.9rem; border-radius: 11px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; padding: 10px 18px; border-radius: 12px; text-decoration: none; line-height: 1.15; }
.store small { display: block; font-size: 0.7rem; opacity: 0.8; }
.store strong { font-size: 1.05rem; }
.store svg { width: 24px; height: 24px; fill: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.hero .points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero .points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a5f55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.phones { position: relative; height: 700px; }
.phones .iphone { position: absolute; --w: 290px; }
.phones .iphone:nth-child(1) { left: 0; top: 46px; transform: rotate(-5deg); z-index: 1; }
.phones .iphone:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }

/* iPhone 17 Pro Max: 440 x 956 pt screen. Everything is in em, where 1em = 1 pt at this size. */
.iphone { --w: 300px; width: var(--w); font-size: calc(var(--w) / 462); padding: 11em; border-radius: 74em; position: relative;
  background: linear-gradient(145deg, #8d8f93 0%, #3a3b3e 18%, #1c1d1f 50%, #3a3b3e 82%, #9a9ca0 100%);
  box-shadow: 0 0 0 1.5em #0b0b0c inset, 0 40px 70px -28px rgba(7, 71, 63, 0.5), 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
.iphone::before, .iphone::after { content: ""; position: absolute; width: 4em; background: #2a2b2e; border-radius: 2em; }
.iphone::before { left: -3em; top: 190em; height: 62em; box-shadow: 0 86em 0 #2a2b2e; }
.iphone::after { right: -3em; top: 250em; height: 100em; }
.iphone .screen { position: relative; width: 440em; height: 956em; border-radius: 63em; overflow: hidden; background: #f3f1ec; border: 0; }
.iphone .screen img { width: 440em; height: 868em; display: block; }
.iphone .screen::after { content: ""; position: absolute; left: 50%; bottom: 8em; width: 144em; height: 5em; margin-left: -72em; border-radius: 3em; background: #111; }
.iphone .home-area { height: 34em; background: #fff; }
.iphone .status { height: 54em; display: flex; align-items: center; justify-content: space-between; padding: 0 33em 0 46em; color: #111; position: relative; }
.iphone .time { font: 600 17em/1 -apple-system, "SF Pro Text", Inter, sans-serif; letter-spacing: -0.02em; }
.iphone .island { position: absolute; left: 50%; top: 11em; width: 126em; height: 37em; margin-left: -63em; background: #000; border-radius: 20em; }
.iphone .icons { display: flex; align-items: center; gap: 6em; }
.iphone .icons svg { fill: #111; color: #111; }
.iphone .icons svg:nth-child(1) { width: 18em; height: 12em; }
.iphone .icons svg:nth-child(2) { width: 16em; height: 12em; }
.iphone .icons svg:nth-child(3) { width: 27em; height: 13em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phones .iphone { --w: 240px; }
}
@media (max-width: 560px) {
  .phones { height: 470px; }
  .phones .iphone { --w: 200px; }
  .phones .iphone:nth-child(2) { right: 4px; }
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; max-width: 720px; margin: 0 auto 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
section.alt .step { background: var(--cream); }
.step, .tile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start; }
.step > p, .tile > p { grid-column: 1 / -1; margin-top: 12px; }
.step h3, .tile h3 { margin: 0; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot .iphone { --w: 300px; }
.feature ul { padding-left: 20px; margin: 8px 0 0; }
.feature li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .shot { order: 0; }
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; }
.tile .icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* Founder */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.founder img { border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35); }
.founder blockquote { margin: 0; font-size: 1.15rem; }
.founder h2 .sub { display: block; color: var(--green); font-size: 0.62em; margin-top: 8px; }
.founder .kicker { font-weight: 600; color: var(--muted); margin: -2px 0 16px; font-size: 1.05rem; }
.founder .sign { font-weight: 700; margin-top: 18px; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 360px; margin: 0 auto; } }

.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; }
.social a:hover { background: var(--green); }
.social svg { width: 20px; height: 20px; fill: var(--green); }
.social a:hover svg { fill: #fff; }

/* Pricing */
.price { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 36px; }
.price .tag { display: inline-block; background: var(--gold); color: var(--text); font-weight: 800; border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; margin-bottom: 14px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta { background: var(--green); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d7ece6; }
.cta .btn-primary { background: var(--gold); color: var(--text); }
.signup { max-width: 760px; margin: 26px auto 0; text-align: left; }
.signup .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.signup label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: #fff; }
.signup input, .signup select { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 0; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.signup button { width: 100%; }
.signup button:disabled { opacity: 0.6; }
.signup .note { font-size: 0.85rem; margin: 14px 0 0; }
.signup .note a { color: #fff; }
.signup .status { margin: 12px 0 0; font-weight: 700; }
.signup .status.ok { color: #fff; }
.signup .status.error { color: #ffd9a0; }
.signup [hidden] { display: none; }

/* Footer */
footer.site { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
footer.site .wrap { display: grid; gap: 14px; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site nav a { color: var(--text); text-decoration: none; font-weight: 600; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.95rem; background: var(--card); }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal blockquote { margin: 12px 0; padding: 10px 16px; background: var(--card); border-left: 4px solid var(--gold); }
