/* Sharper pass: the same SettleWise look (harbour teal, warm paper, sun, Fraunces over Inter), held more firmly.
   Loaded after site.css. Everything here refines an existing rule or adds a piece the system already implies. */

/* The real faces, served from this site so the look never depends on another host. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin.069cb90e11a3.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.260c81a4759b.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Type: Fraunces at its display cut for big headings, steadier steps between sizes. */
h1, h2 { font-optical-sizing: auto; font-weight: 600; text-wrap: balance; }
h1 { letter-spacing: -0.022em; line-height: 1.06; }
h2 { letter-spacing: -0.015em; line-height: 1.14; }
.page-head h1 { font-size: clamp(36px, 5.2vw, 58px); }
.page-head { gap: 16px; padding-block: 20px 36px; }
.page-head .lede, .lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
p, li, dd { text-wrap: pretty; }
h3 { letter-spacing: -0.005em; }
body { font-feature-settings: "cv11", "ss03"; }

/* The parts the browser draws */
::selection { background: color-mix(in srgb, var(--sun) 55%, transparent); color: var(--ink); }
html { accent-color: var(--harbour); caret-color: var(--harbour); scrollbar-color: color-mix(in srgb, var(--harbour) 45%, var(--line)) transparent; }
a { text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 82%, var(--surface-raised)); }

/* Rhythm: more air above a section than inside it */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-tight { padding-block: clamp(40px, 4.5vw, 56px); }
.section h2, .band-light h2 { font-size: clamp(28px, 3.4vw, 40px); }
.intro { gap: 14px; }

/* Buttons: one firm shape, a pressed state */
.btn { transition: background-color .16s cubic-bezier(.2, .8, .2, 1), transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s cubic-bezier(.2, .8, .2, 1); }
.btn-primary:hover, .btn-sun:hover { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ink) 55%, transparent); }
.btn:active { transform: translateY(1px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Home: "Find an answer fast". The tools are the product, so they come straight after the hero. */
.quick { background: var(--surface); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quick-lead { display: flex; flex-direction: column; gap: 16px; }
.quick-lead p { color: var(--ink-muted); max-width: 40ch; }
.quick-search { display: flex; gap: 8px; margin-top: 6px; }
.quick-search input { flex: 1 1 auto; min-width: 0; font: 400 17px/1.3 var(--font-body); padding: 14px 16px; min-height: 52px; border: 2px solid var(--harbour); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); }
.quick-search .btn { min-height: 52px; white-space: nowrap; }
.quick-hint { font-size: 14px; color: var(--ink-muted); }
.quick-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.quick-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.quick-list strong { font: 600 clamp(21px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.012em; }
.quick-list span.what { grid-column: 1; color: var(--ink-muted); font-size: 16px; margin-top: 4px; }
.quick-list .go { grid-row: 1 / span 2; grid-column: 2; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); color: var(--harbour); transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s, border-color .2s; }
.quick-list a:hover strong { color: var(--harbour); }
.quick-list a:hover .go { background: var(--harbour); border-color: var(--harbour); color: var(--on-harbour); transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .quick-list .go { transition: none; } .quick-list a:hover .go { transform: none; } }
@media (max-width: 860px) { .quick-grid { grid-template-columns: minmax(0, 1fr); } .quick-search { flex-wrap: wrap; } .quick-search .btn { flex: 1 1 100%; justify-content: center; } }

/* Home: the three levels of help. The label is the heading, the price sits with the action. */
.tier { gap: 12px; padding: 28px; }
.tier h3 { font: 600 24px/1.2 var(--font-display); letter-spacing: -0.012em; order: -1; }
.tier .tier-kind { font-size: 15px; font-weight: 600; color: var(--harbour); }
.tier ul { margin-top: 4px; padding-bottom: 8px; }
.tier .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.tier .btn { margin-top: auto; }
.tier .price + .btn { margin-top: 0; }
.tier.featured { border: 1px solid var(--harbour); background: var(--harbour); color: var(--on-harbour); }
.tier.featured h3, .tier.featured .price { color: var(--on-harbour); }
.tier.featured .tier-kind { color: var(--sun); }
.tier.featured ul { color: color-mix(in srgb, var(--on-harbour) 84%, var(--harbour)); }
.tier.featured .price { border-top-color: color-mix(in srgb, var(--on-harbour) 24%, var(--harbour)); }
.tier.featured a.small { color: var(--on-harbour); }

/* Home: popular questions sit beside their heading on wide screens */
.section.stack:has(> #popular-title) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 5vw, 72px); row-gap: 14px; align-items: start; }
.section.stack:has(> #popular-title) > .faq { grid-column: 2; grid-row: 1 / span 3; max-width: none !important; }
.section.stack:has(> #popular-title) > h2, .section.stack:has(> #popular-title) > p { grid-column: 1; }
.faq summary { padding: 16px 0; }
@media (max-width: 860px) { .section.stack:has(> #popular-title) { display: flex; } }

/* Guides and posts: a calmer reading column and clearer steps between sections */
.prose h2, .page-body h2 { margin-top: 28px; }
.prose > p, .prose > ul, .prose > ol { max-width: 68ch; }
.facts th, table th { font-weight: 600; }
table td, table th { font-variant-numeric: tabular-nums; }

/* Lists of official things (forms, codes): the number reads as data */
.if-num, .oc-code { font-feature-settings: "tnum", "zero"; letter-spacing: 0.01em; }
.oc-h1-code, .if-h1-code { color: var(--harbour); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The hero keeps its own setting */
.night-hero h1 { letter-spacing: -0.01em; line-height: 1.15; text-wrap: wrap; }
