/* taxfi.ca: one light look, the app's own paper, ink and blue. */
:root {
  --paper: #faf9f7; --card: #ffffff; --ink: #1d1c1a; --ink2: #5f5d58; --ink3: #7d7b75;
  --line: rgba(30,28,24,0.10); --fill: rgba(30,28,24,0.06); --blue: #2a78d6; --blue-hover: #1d5fae;
  --night: #1d1c1a; --night-ink: #f2f1ee; --night-ink2: #b0aea8; --night-blue: #3987e5; --good: #0ca30c;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased;
       font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
a:focus-visible, .store:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(250,249,247,0.86); backdrop-filter: blur(16px);
       -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(30,28,24,0.08); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.bar nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.links { display: flex; gap: 24px; }
.links a { color: var(--ink2); }
.links a:hover { color: var(--ink); }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.pill:hover { background: #3a3835; color: #fff; }
@media (max-width: 640px) { .links { display: none; } }

/* Hero */
main { display: block; }
.hero { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px 0; display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 30px rgba(26,85,208,0.25); }
.hero h1 { font-size: clamp(48px, 7.5vw, 84px); line-height: 1; letter-spacing: -0.04em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); max-width: 30em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.stores.center { justify-content: center; padding-top: 0; }
.store { display: flex; flex-direction: column; padding: 10px 20px; border-radius: 14px; min-width: 150px; }
.store small { font-size: 12px; }
.store b { font-size: 19px; font-weight: 600; }
.store.dark { background: var(--ink); color: #fff; }
.store.dark small { opacity: 0.8; }
.store.light { background: var(--fill); color: var(--ink); }
.store.light small { color: var(--ink2); }
.assure { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink3); }
.assure i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* Phones */
.phone { width: min(100%, 300px); padding: 9px; border-radius: 52px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(30,28,24,0.3); }
.phone img { display: block; width: 100%; border-radius: 43px; }
.phone.big { width: min(100%, 340px); padding: 10px; border-radius: 58px; justify-self: center; box-shadow: 0 40px 80px -20px rgba(30,28,24,0.35); }
.phone.big img { border-radius: 48px; }

/* Features */
.features { max-width: 1160px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) 24px 0; display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.feature.flip { flex-direction: row-reverse; }
.feature .copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature .phone { flex: 0 1 300px; margin-inline: auto; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
.feature p, .mac p { font-size: 19px; color: var(--ink2); max-width: 28em; }

/* Mac */
.mac { max-width: 1160px; margin: 0 auto; padding: clamp(100px, 12vw, 160px) 24px 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.mac p { max-width: 34em; }
.mac img { display: block; width: 100%; max-width: 1040px; margin-top: 24px; border-radius: 14px;
           box-shadow: 0 40px 90px -30px rgba(30,28,24,0.35), 0 0 0 1px rgba(30,28,24,0.08); }

/* Privacy */
.privacy-wrap { max-width: 1160px; margin: 0 auto; padding: clamp(100px, 12vw, 160px) 24px 0; }
.privacy { border-radius: 32px; background: var(--night); color: var(--night-ink); padding: clamp(40px, 7vw, 88px); display: flex; flex-direction: column; gap: 48px; }
.privacy .eyebrow { color: var(--night-blue); }
.privacy-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.privacy-head p { font-size: 19px; color: var(--night-ink2); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.points div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.points b { font-size: 18px; font-weight: 600; }
.points span { font-size: 16px; color: var(--night-ink2); }
.privacy .more { color: var(--night-blue); font-size: 16px; font-weight: 600; }
.privacy .more:hover { color: #6aa6f0; }

/* Closing */
.cta { max-width: 1160px; margin: 0 auto; padding: clamp(100px, 12vw, 160px) 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(26,85,208,0.25); }
.cta h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.pill-big { padding: 14px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.pill-big.dark { background: var(--ink); color: #fff; }
.pill-big.light { background: var(--fill); color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot { max-width: 1160px; margin: 0 auto; padding: 32px 24px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--ink3); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot nav a { color: var(--ink2); }
.foot nav a:hover { color: var(--ink); }
.fine { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: var(--ink3); }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px 80px; display: flex; flex-direction: column; gap: 32px; }
.back { font-size: 15px; color: var(--ink2); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill); align-self: flex-start; }
.tabs a { padding: 8px 18px; border-radius: 999px; color: var(--ink2); font-size: 15px; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(30,28,24,0.12); }
.doc { display: none; flex-direction: column; gap: 28px; }
.doc.on { display: flex; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.doc .date { font-size: 14px; color: var(--ink3); margin-top: -16px; }
.doc .intro { font-size: 19px; color: var(--ink2); }
.doc h3 { margin: 0 0 6px; font-size: 18px; }
.doc section p, .doc section li { color: var(--ink2); }
.doc ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 18px;
        background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mail span { color: var(--ink3); font-weight: 400; font-size: 14px; display: block; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 8px; color: var(--ink2); }
