/* Tefro website, from the landing page design in preview/Main.dc.html.
   Colours mirror app/lib/core/theme/tokens.dart. Amber is for buttons and
   selected states, never text. Text on amber is ink. */
:root {
  --ink: #052659;
  --headline: #021024;
  --ice: #c1e8ff;
  --amber: #ffb547;
  --navy-card: #0b3a7a;
  --pale: #eaf6ff;
  --card-grey: #eef3f8;
  --body: #33415c;
  --secondary: #5a6478;
  --border: #8492a6;
  --white: #ffffff;
  --danger-text: #a3161d;
  --danger-bg: #ffe7e3;
  --alert: #cb272f;
  --gutter: 20px;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

@font-face { font-family: Inter; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-900.woff") format("woff"); font-weight: 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--white); color: var(--body);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--navy-card); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* Display type */
.display { font-weight: 900; text-transform: uppercase; color: var(--headline); line-height: 0.9; letter-spacing: -0.04em; }
.on-navy { color: var(--ice); }
.d-hero { font-size: clamp(46px, 9vw, 128px); line-height: 0.88; letter-spacing: -0.045em; }
.d-xl { font-size: clamp(42px, 6.5vw, 96px); line-height: 0.88; letter-spacing: -0.045em; }
.d-lg { font-size: clamp(38px, 6vw, 89px); line-height: 0.88; }
.d-md { font-size: clamp(34px, 5vw, 61px); }
.d-sm { font-size: clamp(32px, 4vw, 52px); }

.tag { align-self: flex-start; padding: 8px 12px; border-radius: 9999px; background: var(--pale); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lede { font-size: 18px; max-width: 480px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 9999px; background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none; text-align: center; }
.btn:hover { background: #ffc266; color: var(--ink); }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 18px; }
.link-strong { font-size: 17px; font-weight: 400; color: var(--ink); text-decoration: underline; }

/* Nav */
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.lockup img { width: 34px; height: 34px; flex: none; }
.nav-pills { display: none; gap: 4px; background: var(--card-grey); border-radius: 9999px; padding: 4px; }
.nav-pills a { padding: 8px 16px; border-radius: 9999px; color: var(--ink); font-size: 15px; font-weight: 400; text-decoration: none; }
.nav-pills a:hover { background: var(--white); }
.nav-pills a.on { background: var(--ink); color: var(--white); }

/* Hero */
.hero { padding-top: 40px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: var(--pale); color: var(--ink); font-size: 13px; font-weight: 600; }
.hero-chip svg { flex: none; }
.hero-copy p { max-width: 620px; font-size: 18px; letter-spacing: -0.007em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; }
.hero-visual {
  max-width: 1200px; margin: 48px auto 0; padding: 40px 16px 0;
  background: var(--ink); border-radius: 28px 28px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px;
}
.chips { display: flex; flex-direction: column; gap: 14px; width: min(100%, 280px); align-self: center; text-align: left; }
.chip { background: var(--white); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15); }
.chip-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; flex: none; }
.chip-icon.warn { background: var(--danger-bg); }
.chip strong { display: block; color: var(--headline); font-size: 15px; }
.chip small { display: block; color: var(--secondary); font-size: 13px; line-height: 1.35; }

.phone { width: min(100%, 300px); height: 500px; background: var(--headline); border-radius: 44px 44px 0 0; padding: 12px 12px 0; order: -1; }
.phone-screen { height: 100%; background: var(--white); border-radius: 34px 34px 0 0; padding: 22px 16px 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.phone-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.phone-top b { color: var(--headline); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.phone-top span { padding: 4px 10px; border-radius: 9999px; background: var(--ink); color: var(--ice); font-size: 11px; font-weight: 600; }
.search { display: flex; gap: 8px; }
.search span { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--secondary); }
.search i { width: 40px; flex: none; border-radius: 10px; background: var(--amber); display: grid; place-items: center; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--card-grey); border-radius: 12px; padding: 12px; }
.tile.on { background: var(--pale); box-shadow: inset 0 0 0 2px var(--ink); }
.tile span { display: block; font-size: 12px; font-weight: 600; color: var(--headline); line-height: 1.3; min-height: 2.6em; }
.tile b { display: block; margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--ink); }
.cartbar { margin-top: auto; background: var(--ink); border-radius: 16px 16px 0 0; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.cartbar small { display: block; font-size: 11px; color: var(--pale); }
.cartbar b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; color: var(--white); line-height: 1.2; }
.cartbar span { padding: 10px 18px; border-radius: 9999px; background: var(--amber); color: var(--ink); font-size: 14px; font-weight: 800; }

.receipt { display: none; width: 230px; align-self: center; background: var(--white); border-radius: 4px; padding: 20px 18px 28px; color: var(--headline); font-family: var(--mono); font-size: 11px; line-height: 1.4; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15); transform: rotate(3deg); }
.receipt strong, .receipt .c { display: block; text-align: center; }
.receipt strong { font-size: 13px; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.receipt .t { font-weight: 700; font-size: 13px; }
.receipt hr { border: 0; border-top: 1px dashed var(--border); margin: 10px 0 4px; }
.receipt .c { margin-top: 6px; }

/* Built for */
.built { background: var(--ink); padding: 32px 0 48px; }
.built .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.built b { color: var(--pale); font-size: 15px; font-weight: 400; margin-right: 8px; width: 100%; text-align: center; }
.built span { padding: 9px 16px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--ice); color: var(--ice); font-size: 15px; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 0 0 64px; }
.navy { background: var(--ink); }
.grey { background: var(--card-grey); }
.stack { display: flex; flex-direction: column; gap: 36px; }
.split { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; justify-content: space-between; }
.split h2 { flex: 1 1 520px; }
.split p { flex: 1 1 300px; max-width: 440px; font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }

.pain { background: var(--card-grey); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pain span { font-size: 56px; line-height: 0.7; font-weight: 900; color: var(--ink); height: 28px; }
.pain p { font-size: 24px; line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; color: var(--headline); }

/* Features */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.feature { background: var(--card-grey); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature.pale { background: var(--pale); }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.kicker { font-size: 14px; font-weight: 600; color: var(--navy-card); }
.feature h3 { font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--headline); }
.feature-wide { grid-column: 1 / -1; background: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.feature-wide > div { flex: 1 1 min(100%, 340px); }
.feature-wide .copy { display: flex; flex-direction: column; gap: 16px; }
.feature-wide .kicker { color: var(--ice); }
.feature-wide p { color: var(--white); font-size: 18px; max-width: 480px; }
.sync-list { background: var(--navy-card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sync-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--white); border-radius: 9999px; padding: 10px 12px 10px 16px; font-size: 14px; font-weight: 600; color: var(--headline); }
.sync-row span { font-size: 12px; font-weight: 600; color: var(--ink); background: var(--pale); padding: 4px 10px; border-radius: 9999px; white-space: nowrap; }
.sync-row span.wait { color: var(--ice); background: var(--ink); }

/* Two-column showcase */
.show { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.show > div { flex: 1 1 min(100%, 420px); min-width: 0; }
.show .copy { display: flex; flex-direction: column; gap: 24px; }
.navy .lede { color: var(--white); font-size: 20px; }
.navy .btn { align-self: flex-start; }

.ledger { background: var(--white); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ledger-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 15px; font-weight: 600; }
.ledger-total b { font-size: 34px; font-weight: 900; letter-spacing: -0.04em; color: var(--headline); }
.segs { display: flex; gap: 4px; background: var(--card-grey); border-radius: 9999px; padding: 4px; font-size: 13px; text-align: center; }
.segs span { flex: 1; padding: 8px 2px; border-radius: 9999px; }
.segs .on { background: var(--amber); color: var(--ink); font-weight: 600; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card-grey); }
.person i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--pale); color: var(--ink); font-style: normal; font-weight: 800; display: grid; place-items: center; }
.person div { flex: 1; min-width: 0; }
.person strong { display: block; color: var(--headline); font-weight: 800; }
.person b { color: var(--headline); font-weight: 800; }
.person small { display: block; font-size: 13px; color: var(--secondary); }
.person small.late { color: var(--alert); }
.reminder { background: var(--card-grey); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--headline); }
.reminder span { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9999px; background: var(--ink); color: var(--white); font-weight: 600; }

.log { background: var(--card-grey); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.log > span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 4px 6px; }
.log-row { background: var(--white); border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--headline); }
.log-row i { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 9999px; background: var(--pale); color: var(--ink); }
.log-row i.red { background: var(--danger-bg); color: var(--danger-text); }
.log-row i.dark { background: var(--ink); color: var(--ice); }
.log-row span { flex: 1 1 170px; }
.log-row small { font-size: 12px; color: var(--secondary); }
.checks { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--headline); }
.checks svg { flex: none; }

/* How */
.how-card { background: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.how-card > span { font-size: 61px; font-weight: 900; line-height: 0.85; letter-spacing: -0.04em; color: var(--ink); }
.how-card h3 { font-size: 22px; font-weight: 800; color: var(--headline); line-height: 1.2; letter-spacing: -0.01em; }
.center { text-align: center; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.faq-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.faq-side p { font-size: 18px; }
.faq-list { flex: 2 1 min(100%, 520px); min-width: 0; }
details { border-bottom: 1px solid var(--card-grey); padding: 18px 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--headline); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 400; color: var(--ink); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; }

/* Final call */
.final { padding: 0 var(--gutter) 24px; }
.final-box { max-width: 1160px; margin: 0 auto; background: var(--ink); border-radius: 28px; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final-box h2 { font-size: clamp(50px, 8vw, 120px); line-height: 0.88; letter-spacing: -0.045em; }
.final-box p { color: var(--white); font-size: 18px; max-width: 560px; }
.final-box .link-strong { color: var(--white); }

/* Footer */
.site-foot { padding: 56px 0 32px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 36px 56px; justify-content: space-between; }
.foot-about { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.foot-cols div { display: flex; flex-direction: column; gap: 6px; }
.foot-cols b { font-size: 13px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.foot-cols a { font-size: 15px; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid var(--card-grey); margin-top: 40px; padding-top: 20px; font-size: 14px; color: var(--secondary); }
.foot-word { font-weight: 900; font-size: clamp(80px, 24vw, 280px); line-height: 0.8; letter-spacing: -0.06em; color: var(--card-grey); text-align: center; margin-top: 32px; user-select: none; }

/* Legal pages */
.page-head { background: var(--ink); padding: 56px 0; }
.page-head p { margin-top: 18px; color: var(--pale); }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.legal h2 { color: var(--headline); font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--card-grey); }
.legal th { color: var(--headline); font-weight: 800; }
.callout { background: var(--pale); border-radius: 20px; padding: 18px 20px; margin: 0 0 20px; }
.callout p:last-child { margin-bottom: 0; }
.legal .after-title { margin-top: 20px; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .section { padding: 96px 0; }
  .section-tight { padding-bottom: 96px; }
  .hero { padding-top: 64px; }
  .hero-copy p { font-size: 20px; }
  .hero-visual { padding: 56px 24px 0; gap: 40px; }
  .phone { height: 520px; order: 0; }
  .feature, .pain, .how-card { padding: 32px; }
  .feature-wide { padding: 40px; }
  .ledger { padding: 28px; }
  .log { padding: 28px; }
  .final-box { padding: 96px 32px; }
  .built b { width: auto; }
}
@media (min-width: 900px) {
  .nav-pills { display: flex; }
}
@media (min-width: 1040px) {
  .receipt { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
