/* Boiling Flask marketing site. Palette values copied from the app's tokens.css (not linked). */
@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --s-bg: #F4F6EF;
  --s-surface: #FFFFFF;
  --s-text: #1F2430;
  --s-muted: #5C6272;
  --s-border: #E3E6DA;
  --s-accent: #E8793F;
  --s-accent-text: #B5521E;       /* links, hover text and button fill: AA on the light surfaces */
  --s-btn: #E8793F;                /* primary button fill, dark text: 5.3:1 */
  --s-btn-text: #1F2430;
  --s-btn-hover: #EC864F;
  --s-soft: #FEF2EA;
  --s-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s-radius: 8px;
  --s-max: 72rem;
  --s-header-h: 4rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --s-bg: #16181D;
    --s-surface: #1E2127;
    --s-text: #ECEAE4;
    --s-muted: #A8A9AE;
    --s-border: #32353D;
    --s-accent-text: #F29A68;     /* AA on the dark surfaces */
    --s-soft: #2A2420;
    color-scheme: dark;
  }
}

:root[data-theme=dark] {
  --s-bg: #16181D;
  --s-surface: #1E2127;
  --s-text: #ECEAE4;
  --s-muted: #A8A9AE;
  --s-border: #32353D;
  --s-accent-text: #F29A68;
  --s-soft: #2A2420;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--s-header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--s-bg);
  color: var(--s-text);
  font: 400 1rem/1.6 var(--s-font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--s-accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
.wrap { width: 100%; max-width: var(--s-max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--s-surface); color: var(--s-text); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--s-radius);
  font: 600 .95rem/1 var(--s-font); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--s-text);
}
.btn-primary { background: var(--s-btn); color: var(--s-btn-text); }
.btn-primary:hover { background: var(--s-btn-hover); text-decoration: none; }
.btn-secondary { border-color: var(--s-border); color: var(--s-text); background: var(--s-surface); }
.btn-secondary:hover { border-color: var(--s-accent); text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--s-bg); border-bottom: 1px solid var(--s-border); }
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: var(--s-header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo { height: 34px; width: auto; display: block; }
.logo-dark { display: none; }
:root[data-theme=dark] .logo-light { display: none; }
:root[data-theme=dark] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .logo-light { display: none; }
  :root:not([data-theme=light]) .logo-dark { display: block; }
}
.nav { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; order: 5; padding-bottom: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--s-text); text-decoration: none; font-weight: 500; border-radius: var(--s-radius); }
.nav a:hover { color: var(--s-accent-text); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .login { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: var(--s-radius);
  border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-text); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
:root[data-theme=dark] .icon-btn .i-sun { display: block; }
:root[data-theme=dark] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme=light]) .icon-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.header-actions .btn-primary { display: none; }

/* With JS the phone menu collapses; without JS the links stay reachable. */
.js .menu-btn { display: inline-flex; }
.js .nav { display: none; }
.js .nav.open { display: flex; flex-direction: column; }
@media (min-width: 48rem) {
  .site-header .wrap { flex-wrap: nowrap; gap: 16px; }
  .brand { margin-right: 0; }
  .nav, .js .nav { display: flex; flex-direction: row; width: auto; order: 0; padding: 0; margin-left: auto; }
  .menu-btn, .js .menu-btn { display: none; }
  .header-actions .login, .header-actions .btn-primary { display: inline-flex; }
  .header-actions .login { padding: 0 10px; }
}
@media (max-width: 47.99rem) {
  .header-actions .login { display: none; }
  .nav .nav-login, .nav .nav-trial { display: inline-flex; }
}
@media (min-width: 48rem) { .nav .nav-login, .nav .nav-trial { display: none; } }

/* Main and footer */
main { min-height: 50vh; }
.hero { padding: 48px 0 40px; }
.hero p { max-width: 42rem; color: var(--s-muted); font-size: 1.125rem; }
.site-footer { border-top: 1px solid var(--s-border); background: var(--s-surface); padding: 32px 0; color: var(--s-muted); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px 0 0; color: var(--s-text); }
.site-footer p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home page */
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.fine { color: var(--s-muted); font-size: .9rem; margin: 0; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-shot { margin: 0; justify-self: center; width: min(100%, 17rem); }
.hero-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--s-border); border-radius: 20px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
@media (min-width: 48rem) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.band { padding: 56px 0; }
.band.alt { background: var(--s-surface); border-block: 1px solid var(--s-border); }
.narrow { max-width: 46rem; }
.centre { text-align: center; }
.centre .cta-row { justify-content: center; }
.lead { color: var(--s-muted); font-size: 1.1rem; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--s-soft); border: 1px solid var(--s-border); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card, .plan, .estimator { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); padding: 20px; }
.band.alt .card, .band.alt .plan, .band.alt .estimator { background: var(--s-bg); }
.card h3, .plan h3 { margin-bottom: .35em; }
.card p, .steps p { margin: 0; color: var(--s-muted); }
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-top: 24px; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; height: auto; border: 1px solid var(--s-border); border-radius: 12px; }
.shots figcaption { color: var(--s-muted); margin-top: 8px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--s-btn); color: var(--s-btn-text); font-weight: 700; margin-bottom: 8px; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0 16px; }
@media (min-width: 40rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan-hot { border: 2px solid var(--s-accent); }
.tag { margin: 0 0 4px; color: var(--s-accent-text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.price { margin: 0 0 4px; }
.price strong { font-size: 2.25rem; letter-spacing: -.02em; }
.price span { color: var(--s-muted); }
.plan p:last-child { margin: 0; color: var(--s-muted); }
.plan-notes { padding-left: 1.2rem; }
.gst { font-weight: 600; }
.estimator { margin: 24px 0; max-width: 34rem; }
.est-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.est-row label { font-weight: 600; margin-right: auto; }
.est-row input { width: 5rem; min-height: 44px; text-align: center; font: 600 1rem var(--s-font); background: var(--s-surface); color: var(--s-text); border: 1px solid var(--s-border); border-radius: var(--s-radius); }
.est-row .icon-btn { font: 600 1.25rem var(--s-font); }
.est-out { margin: 0 0 8px; }
.est-out div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--s-border); }
.est-out dt { color: var(--s-muted); }
.est-out dd { margin: 0; font-weight: 700; }
details { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 600; }
details p { margin: 0; padding: 0 16px 16px; color: var(--s-muted); }

/* legal and contact pages */
.legal { padding: 40px 0 56px; }
.legal .wrap > * { max-width: 46rem; }
.legal-date { color: var(--s-muted); }
.legal h2 { font-size: 1.25rem; margin: 1.75em 0 .5em; }
.legal p, .legal li { line-height: 1.65; }
.legal ul, .legal ol { padding-left: 1.25em; }
.legal-toc { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--s-border); border-radius: 12px; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 .5em; }
.legal-toc ol { margin: 0; columns: 2 14rem; }
.legal a { overflow-wrap: anywhere; }
