/* AIOSAASS Digital - plain CSS, mobile-first. Fonts are self-hosted (see fonts/). Light and dark themes. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Colour tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f3f5f0;
  --paper: #e8eee4;
  --text: #14231a;
  --text-soft: #404f45;
  --head: #0b3b26;
  --link: #0f5c3a;
  --link-hover: #0a3f28;
  --accent: #0f5c3a;
  --on-accent: #ffffff;
  --amber: #e8a317;
  --amber-text: #7d5200;
  --on-amber: #14231a;
  --line: #c5d0c1;
  --wa: #12803e;
  --wa-hover: #0e6a33;
  --band-bg: #0b3b26;
  --band-text: #dfece3;
  --band-head: #ffffff;
  --footer-bg: #0b3b26;
  --footer-text: #d6e5db;
  --footer-link: #ffffff;
  --parent: #5f656b;
  --parent-on-dark: #c7ccd0;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1610; --paper: #132019; --text: #e6eee8; --text-soft: #aebfb4; --head: #c6ecd7;
    --link: #7fd9ab; --link-hover: #b4efd0; --accent: #1a7a4c; --amber-text: #f0b43a;
    --line: #2a3b31; --band-bg: #07241a; --band-text: #d3e3d9; --footer-bg: #07241a; --parent: #a9afb5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1610; --paper: #132019; --text: #e6eee8; --text-soft: #aebfb4; --head: #c6ecd7;
  --link: #7fd9ab; --link-hover: #b4efd0; --accent: #1a7a4c; --amber-text: #f0b43a;
  --line: #2a3b31; --band-bg: #07241a; --band-text: #d3e3d9; --footer-bg: #07241a; --parent: #a9afb5;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.1rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
h1, h2, h3 { font-family: var(--display); color: var(--head); margin: 0 0 .8rem; }
h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.018em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.small { font-size: .92rem; color: var(--text-soft); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; }
.brand { font-family: var(--display); font-size: 1.3rem; text-decoration: none; line-height: 1.05; color: var(--head); letter-spacing: -.01em; }
.brand-main { font-weight: 800; }
.brand-sub { font-weight: 400; margin-left: .3em; }
.ctrl { display: flex; align-items: center; gap: .4rem; }
.theme { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--link); background: transparent; color: var(--link); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.theme:hover { background: var(--paper); }
.theme .ico { width: 1.05rem; height: 1.05rem; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.lang { display: inline-flex; border: 2px solid var(--link); border-radius: 999px; overflow: hidden; }
.lang button { font: inherit; font-size: .85rem; font-weight: 700; border: 0; background: transparent; color: var(--link); padding: .35rem .8rem; cursor: pointer; min-height: 2.25rem; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.nav { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--text-soft); font-weight: 700; font-size: .95rem; padding: .4rem 0 .5rem; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--head); }
.nav a[aria-current="page"] { color: var(--head); border-bottom-color: var(--amber); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; text-decoration: none; text-align: center; padding: .8rem 1.4rem; border-radius: 999px; min-height: 3rem; border: 2px solid transparent; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { background: #f4b72f; color: var(--on-amber); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* ---------- Photo placeholders (replace with real photos, see images/README.txt) ---------- */
.photo { margin: 0; }
.photo img, .photo .ph { width: 100%; border-radius: 4px; }
.photo img { height: auto; object-fit: cover; }
.photo.r32 img, .photo.r32 .ph { aspect-ratio: 3 / 2; }
.photo.r45 img, .photo.r45 .ph { aspect-ratio: 4 / 5; }
.ph { display: flex; flex-direction: column; justify-content: center; gap: .35rem; padding: 1.1rem; border: 2px dashed var(--link);
  background: repeating-linear-gradient(135deg, transparent 0 14px, var(--paper) 14px 15px); color: var(--text); }
.ph strong { font-family: var(--display); font-size: 1.05rem; color: var(--head); }
.ph span { font-size: .95rem; }
.ph small { font-size: .82rem; color: var(--text-soft); }

/* ---------- Sections ---------- */
.hero { padding: 2.2rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; }
.page-head { padding: 2.2rem 0 1.4rem; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
section.s { padding: 3rem 0; }
section.s.tight { padding: 1.6rem 0; }
section.s.tint { background: var(--paper); }
.band { background: var(--band-bg); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-head); }
.band p { color: var(--band-text); }

/* Rented vs yours */
.vs { display: grid; gap: 1rem; margin-top: 1.5rem; }
.vs > div { padding: 1.4rem; }
.vs h3 { font-size: 1.5rem; }
.vs ul { margin: 0; padding-left: 1.1rem; }
.vs li { margin-bottom: .5rem; }
.rented { border: 2px dashed rgba(223,236,227,.55); }
.owned { background: var(--bg); color: var(--text); border-top: 6px solid var(--amber); border-radius: 0 0 14px 0; }
.owned h3 { color: var(--head); }
.owned p, .owned li { color: var(--text); }

/* Notice bar (founding offer) */
.notice { background: var(--amber); color: var(--on-amber); }
.notice .wrap { padding-top: .9rem; padding-bottom: .9rem; display: grid; gap: .5rem; }
.notice p { margin: 0; max-width: none; color: var(--on-amber); font-size: .98rem; }
.notice b { font-family: var(--display); font-size: 1.1rem; }
.notice .spots { display: inline-block; font-weight: 700; background: var(--on-amber); color: var(--amber); padding: .15rem .75rem; border-radius: 999px; justify-self: start; }

/* What we do (home rows) */
.rows { margin: 1.2rem 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.rows li { display: grid; gap: .25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--text-soft); }
.rows .p { font-family: var(--display); font-weight: 700; color: var(--head); }

/* Steps (a real sequence) */
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 44rem; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.2rem; border-left: 2px solid var(--line); margin-left: 1rem; }
.steps-list li::before { content: counter(s); position: absolute; left: -1.1rem; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps-list li:last-child { border-left-color: transparent; }
.steps-list h3 { margin-bottom: .2rem; }
.steps-list p { margin: 0; color: var(--text-soft); }

/* Services */
.svc { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.svc .body p { margin-bottom: .9rem; }
.svc .lead-in { font-weight: 700; color: var(--head); }
.price-line { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--head); margin: .5rem 0 0; }
.price-line small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--text-soft); }
.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; background: var(--amber); color: var(--on-amber); margin-bottom: .6rem; }
.badge.soon { background: transparent; color: var(--text); border: 2px solid var(--line); }

.packages { display: grid; gap: 0; margin: 1.5rem 0 1rem; }
.pk { padding: 1.3rem 0 1.5rem; border-top: 4px solid var(--link); display: flex; flex-direction: column; }
.pk.recommended { border-top-color: var(--amber); }
.pk h3 { margin-bottom: .1rem; }
.pk .price-line { margin: 0 0 .8rem; }
.incl { list-style: none; margin: 0 0 1.2rem; padding: 0; flex: 1; }
.incl li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .98rem; }
.incl li::before { content: "\2713"; position: absolute; left: 0; color: var(--link); font-weight: 700; }
.pk .btn { width: 100%; }
.care { border-left: 5px solid var(--amber); padding: .2rem 0 .2rem 1rem; margin: 1.2rem 0; }
.care h3 { margin-bottom: .2rem; }
.care p { margin: 0 0 .3rem; }

/* Contact list */
.facts-list { margin: 1rem 0 0; padding: 0; }
.facts-list > div { display: grid; gap: .3rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.facts-list dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--head); }
.facts-list dd { margin: 0; }
.till { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: .06em; color: var(--head); margin: 0 0 .3rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.about-grid { display: grid; gap: 2rem; }
.parent-name { color: var(--parent); font-weight: 700; }

/* ---------- Checkout ---------- */
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; background: var(--paper); }
form fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
form legend { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--head); margin-bottom: .6rem; padding: 0; }
.opt { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem; border: 2px solid var(--line); border-radius: 8px; margin-bottom: .5rem; cursor: pointer; background: var(--bg); }
.opt:has(input:checked) { border-color: var(--link); }
.opt input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.opt b { color: var(--head); }
.opt span { display: block; color: var(--text-soft); font-size: .95rem; }
label.field { display: block; font-weight: 700; margin-bottom: 1rem; }
label.field input { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1rem; padding: .75rem .9rem; min-height: 3rem; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 8px; }
label.field input:focus { border-color: var(--link); }
.summary { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.summary p { margin: 0 0 .35rem; }
.summary .due { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--head); }
.error { color: #a8231b; font-weight: 700; min-height: 1.5rem; margin: 0 0 .5rem; }
:root[data-theme="dark"] .error { color: #ff9f95; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #ff9f95; } }
.steps { padding-left: 1.2rem; margin: 0 0 1rem; }
.steps li { margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.2rem 0 5.5rem; margin-top: 3rem; }
.site-footer a { color: var(--footer-link); }
.site-footer p { margin: .25rem 0; font-size: .95rem; }
.site-footer .parent-name { color: var(--parent-on-dark); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }

.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.28); min-height: 3rem; display: inline-flex; align-items: center; }
.fab:hover { background: var(--wa-hover); color: #fff; }

@media (min-width: 44rem) {
  .vs { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .packages { grid-template-columns: repeat(3, 1fr); }
  .pk { padding: 1.3rem 1.4rem 1.5rem 1.4rem; }
  .pk:first-child { padding-left: 0; }
  .pk + .pk { border-left: 1px solid var(--line); }
  .rows li { grid-template-columns: 14rem 1fr auto; align-items: baseline; gap: 1.5rem; }
  .facts-list > div { grid-template-columns: 14rem 1fr; gap: 1.5rem; }
  .notice .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
  .steps-list li { padding-bottom: 1.8rem; }
}
@media (min-width: 60rem) {
  .wrap { padding: 0 1.75rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: end; }
  .svc { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; padding: 3.5rem 0; align-items: start; }
  .svc.flip .photo { order: -1; }
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
  .checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
  .site-footer { padding-bottom: 2.2rem; }
  .fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Hero phone illustration (HTML/CSS, no images) ---------- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone { width: min(18rem, 100%); aspect-ratio: 9 / 13.5; background: #14231a; border-radius: 2.2rem; padding: .6rem; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.screen { height: 100%; background: #ffffff; color: #1f2a24; border-radius: 1.7rem; padding: 1rem .8rem; overflow: hidden; font-family: var(--body); position: relative; }
.sbar { display: flex; align-items: center; gap: .5rem; border: 1px solid #c9d1cc; border-radius: 999px; padding: .55rem .8rem; color: #3b4a42; min-height: 2.6rem; }
.typed { font-size: .84rem; color: #1f2a24; white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 1.1em; background: #1f2a24; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result { margin-top: .9rem; border: 1px solid #c9d1cc; border-radius: 12px; padding: .8rem; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.result.show { opacity: 1; transform: none; }
.r-head { display: flex; gap: .6rem; align-items: center; }
.r-badge { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #0f5c3a; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.r-head strong { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.1; color: #14231a; }
.r-sub { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: #4a5a51; }
.r-sub svg { color: #b87900; }
.r-url { margin: .55rem 0; font-size: .85rem; color: #0b5d8f; text-decoration: underline; }
.r-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.r-actions span { font-size: .78rem; font-weight: 700; border: 1px solid #0f5c3a; color: #0b3b26; border-radius: 999px; padding: .25rem .65rem; }
.ghost { height: .7rem; border-radius: 4px; background: #e6ebe7; margin-top: .8rem; }
.ghost.g1 { width: 70%; margin-top: 1.1rem; } .ghost.g2 { width: 90%; } .ghost.g3 { width: 55%; }
.phone-note { text-align: center; margin: .8rem 0 0; max-width: 18rem; }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .result { transition: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-top: 1rem; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1rem 2.2rem 1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--head); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font-size: 1.5rem; font-weight: 400; color: var(--link); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 1rem; }
.faq-a p { margin: 0; color: var(--text); }

/* ---------- Logo ---------- */
.about-logo { color: var(--parent); max-width: 20rem; width: 100%; justify-self: center; order: -1; margin: .5rem 0 1rem; }
@media (min-width: 60rem) { .about-logo { order: 0; max-width: 24rem; margin: 0; } }
.about-logo svg { width: 100%; height: auto; display: block; }
.venture-line { display: flex; align-items: center; gap: .7rem; }
/* parent AIOSAASS logo (logo.svg) in the footer, tinted light grey */
.foot-mark { flex: none; width: 4.4rem; height: 4.8rem; background: var(--parent-on-dark); -webkit-mask: url("logo.svg") center / contain no-repeat; mask: url("logo.svg") center / contain no-repeat; }
/* Digital mark in the header, in the parent grey */
.brand { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.12rem; white-space: nowrap; }
.brand::before { content: ""; width: 1.45rem; height: 1.65rem; flex: none; background: var(--parent); -webkit-mask: url("logo-digital-mark.svg") center / contain no-repeat; mask: url("logo-digital-mark.svg") center / contain no-repeat; }
.logo-draw path { fill: currentColor; }
.p-grey { color: var(--parent); }
.p-green { color: var(--link); }
@media (prefers-reduced-motion: no-preference) {
  .logo-draw path { stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
    animation: logo-draw 1.1s ease-out forwards, logo-fill .4s ease 1.1s forwards; }
  .logo-draw .bar { opacity: 0; animation: logo-bar .4s ease 1.1s forwards; }
}
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }
@keyframes logo-bar { to { opacity: .28; } }
@media (min-width: 60rem) { .phone-wrap { align-self: center; } }

@media (max-width: 23rem) {
  .brand { font-size: 1rem; gap: .3rem; }
  .brand::before { width: 1.2rem; height: 1.4rem; }
  .brand-sub { margin-left: .2em; }
  .lang button { padding: .35rem .55rem; }
  .theme { width: 2.25rem; height: 2.25rem; }
  .wrap { padding: 0 .8rem; }
}

/* photos: a touch dimmer in dark mode */
:root[data-theme="dark"] .photo img { filter: brightness(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo img { filter: brightness(.9); } }

/* photos keep their natural proportions; the portrait one is kept to a sensible width */
.photo.rnat img { height: auto; }
.photo.portrait { max-width: 24rem; }

/* two photos stacked in one slot */
.photo-pair { display: grid; gap: 1rem; }

/* the logo draw-in plays once per visit; after that it shows finished straight away */
.logo-played .logo-draw path { animation: none !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
.logo-played .logo-draw .bar { animation: none !important; opacity: .28 !important; }

/* checkout consent tick box */
.consent { margin: 0 0 1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; padding: .5rem 0; }
.check input { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; accent-color: var(--accent); }

/* skip link: hidden until a keyboard user tabs to it */
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: .5rem; }
main:focus { outline: none; }
