/* Settle In Australia — website styles (matches the app's look) */

:root {
  --bg: #15121c;
  --surface: #211c2c;
  --surface-2: #2c2540;
  --border: #393150;
  --text: #f0ebf8;
  --muted: #aaa2bd;
  --lavender: #b9a1ea;
  --lavender-soft: #2f2747;
  --on-lavender: #1c1530;
  --coral: #eaa596;
  --coral-surface: #33242c;
  --coral-border: #e39d90;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f4fb;
  --surface: #ffffff;
  --surface-2: #efe9fa;
  --border: #e1d9ef;
  --text: #1f1a2b;
  --muted: #6a6280;
  --lavender: #8f6fd6;
  --lavender-soft: #ece4fb;
  --on-lavender: #ffffff;
  --coral: #c4624f;
  --coral-surface: #fdf0ec;
  --coral-border: #ecb3a6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header { padding: 20px 0 8px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: url("../images/app-icon.png") center/cover no-repeat,
              linear-gradient(145deg, #f6dcd4, #d97b6a);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; display: block; }
.brand-tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: background .2s, border-color .2s;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--lavender); color: var(--on-lavender); border-color: var(--lavender); font-weight: 600; }

/* ---------- Pills / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--muted); font-size: .9rem; font-weight: 500;
}
.chip.accent { background: var(--lavender-soft); border-color: transparent; color: var(--lavender); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--lavender); color: var(--on-lavender); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { margin: 24px 0 56px; }
.hero-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border);
}
.hero-media {
  height: clamp(220px, 42vw, 420px); position: relative;
  background: url("../images/hero.jpg") center/cover no-repeat,
              linear-gradient(180deg, #6fb7c8 0%, #a9d6d4 38%, #e9dcc0 55%, #6d8a4f 75%, #3b4a2c 100%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--surface) 100%);
}
.photo-credit {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; font-size: .8rem;
  background: rgba(20,16,28,.7); color: #f0ebf8; padding: 3px 10px; border-radius: 8px;
}
.hero-body { padding: 8px 24px 32px; position: relative; }
@media (min-width: 720px) { .hero-body { padding: 8px 48px 48px; } }
.eyebrow { color: var(--coral); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.progress-ring {
  position: absolute; right: 24px; top: -90px; z-index: 2;
  width: 128px; height: 128px; border-radius: 50%;
  background: rgba(44,37,64,.92); border: 8px solid rgba(57,49,80,.95);
  display: grid; place-content: center; text-align: center; color: #f0ebf8;
}
.progress-ring strong { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.progress-ring span { font-size: .78rem; color: #c9c1da; line-height: 1.2; }
@media (max-width: 520px) { .progress-ring { width: 100px; height: 100px; top: -120px; right: 16px; } .progress-ring strong { font-size: 1.6rem; } }

/* ---------- Sections ---------- */
section { margin: 0 0 64px; }
.section-head { max-width: 42em; margin-bottom: 24px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card.highlight { background: var(--surface-2); border-color: var(--lavender); }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lavender-soft); color: var(--lavender); margin-bottom: 16px;
}
.card.highlight .icon-tile { background: var(--lavender); color: var(--on-lavender); }
.icon-tile svg { width: 24px; height: 24px; }

/* Task example (mirrors the in-app task card) */
.task {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
}
.task-check { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); }
.task h3 { font-size: 1.25rem; margin-bottom: .6em; }
.task p { color: var(--text); }
.callout { border-radius: var(--radius-md); padding: 16px 20px; margin-top: 12px; }
.callout.tip { background: var(--lavender-soft); }
.callout.warn { background: var(--coral-surface); }
.callout.warn strong { color: var(--coral); }

/* States */
.states { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.state {
  border-radius: var(--radius-md); padding: 18px; min-height: 96px;
  border: 2px solid rgba(234,165,150,.45);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.state b { font-size: 1.4rem; line-height: 1.1; }
.state span { color: var(--muted); font-size: .95rem; }

/* Languages */
.lang-pills { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-pill); flex-wrap: wrap; }
.lang-pills span { padding: 8px 18px; border-radius: var(--radius-pill); font-weight: 600; }
.lang-pills span:first-child { background: var(--lavender); color: var(--on-lavender); }

/* Pricing / upsell (coral-bordered like the app) */
.upsell {
  background: var(--coral-surface); border: 1.5px solid var(--coral-border);
  border-radius: var(--radius-lg); padding: 32px 24px;
}
@media (min-width: 720px) { .upsell { padding: 40px 48px; } }
.upsell .fine { color: var(--muted); font-size: .95rem; margin-top: 16px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before { content: "✓"; color: var(--lavender); font-weight: 700; }

/* ---------- Legal / long-form pages ---------- */
.doc { max-width: 760px; margin: 24px auto 64px; }
.doc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; }
@media (min-width: 720px) { .doc-card { padding: 48px; } }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.summary {
  background: var(--lavender-soft); border-radius: var(--radius-md); padding: 18px 22px; margin: 20px 0 8px;
}
.summary ul { margin: 0; }
.placeholder { background: rgba(234,165,150,.18); color: var(--coral); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 20px; margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "⌄"; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(180deg); }
details p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--coral); display: grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 22px; height: 22px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero with phone (v2) ---------- */
.hero2 {
  display: grid; gap: 32px; align-items: center; margin: 24px 0 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 22px; overflow: hidden; position: relative;
}
.hero2::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(185,161,234,.22), transparent 65%); pointer-events: none;
}
@media (min-width: 860px) { .hero2 { grid-template-columns: 1.15fr .85fr; padding: 56px; gap: 48px; } }
.hero2 > * { position: relative; }

/* Phone frame */
.phone {
  width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 600 / 930;
  border-radius: 38px; padding: 10px; background: #0c0a10;
  box-shadow: 0 0 0 1.5px #3a3348, 0 24px 60px rgba(0,0,0,.45);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; background: #15121c; }
.hero2 .phone { max-width: 300px; transform: rotate(2deg); }

/* Screenshot gallery */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots .phone { max-width: none; }
.shots figcaption { margin-top: 14px; }
.shots figcaption b { display: block; font-size: 1.05rem; }
.shots figcaption span { color: var(--muted); font-size: .95rem; }
.scroll-hint { color: var(--muted); font-size: .9rem; }

/* Video */
.video-wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .video-wrap { grid-template-columns: .8fr 1.2fr; } }
.video-wrap .phone { max-width: 300px; }
