/* ==========================================================================
   Wattlebrooks Apps — vendor site
   Palette drawn from the logo: deep brook teal, pale water, wattle gold.
   Fraunces for headings (soft, warm, a little botanical), Instrument Sans
   for everything else. Light theme, no JavaScript.
   ========================================================================== */

:root {
  --teal: #0E7C66;
  --teal-deep: #0A5C4C;
  --teal-ink: #073D33;
  --water: #E4F3EE;
  --water-soft: #F3F9F7;
  --gold: #F2B51C;
  --gold-soft: #FBF0D1;
  --gold-ink: #7A5A08;
  --ink: #15221E;
  --ink-2: #3E4D48;
  --ink-3: #66746F;
  --rule: #D5E2DD;
  --rule-soft: #E6EEEB;
  --paper: #FFFFFF;
  --maxw: 1120px;
  --radius: 18px;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.app-side a:focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.04;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-variation-settings: 'opsz' 48, 'SOFT' 40;
}

h3 {
  font-size: 23px;
  line-height: 1.25;
  font-variation-settings: 'opsz' 24, 'SOFT' 30;
}

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.5;
}

.intro {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 40em;
  margin: 14px 0 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 24, 'SOFT' 30;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--teal); background: var(--water-soft); color: var(--teal-ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--water-soft) 0%, #fff 100%);
  padding: 72px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero h1 { max-width: 13ch; }
.hero .lede { margin: 24px 0 0; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% 10% 2% 10%;
  background: radial-gradient(closest-side, var(--water) 0%, rgba(228, 243, 238, 0.55) 55%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  filter: drop-shadow(0 18px 30px rgba(7, 61, 51, 0.16));
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-3);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* The brook: a wave that closes the hero, echoing the logo bowl */
.brook {
  display: block;
  width: 100%;
  height: 56px;
  color: var(--teal);
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-water { background: var(--water-soft); }

.section-head { max-width: 46em; margin-bottom: 44px; }

/* ---------- app card ---------- */
.app {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 50px -36px rgba(7, 61, 51, 0.35);
}

.app-copy { padding: 44px 44px 40px; }

.app-kind {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--water);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.app h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.app-copy > p { color: var(--ink-2); max-width: 44em; }

.app-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.app-features li {
  position: relative;
  padding-left: 26px;
}
.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.app-side {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal-ink) 100%);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-side h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  color: #fff;
  font-variation-settings: 'opsz' 24, 'SOFT' 30;
}
.app-side dl { margin: 0; }
.app-side dt {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
}
.app-side dd {
  margin: 2px 0 0;
  font-size: 16.5px;
  font-weight: 500;
}
.app-side dd.price { font-family: var(--serif); font-size: 28px; font-variation-settings: 'opsz' 36; }
.app-side a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.app-side a:hover { color: var(--gold); }

.app-links {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
}

/* ---------- principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--ink-2); margin: 0; font-size: 16px; }
.principle .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.principle .mark svg { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.6; }

/* ---------- support ---------- */
.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.support-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
}
.support-card h3 { font-size: 21px; margin-bottom: 8px; }
.support-card p { color: var(--ink-2); margin: 0 0 14px; }
.support-card p:last-child { margin-bottom: 0; }
.hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-top: 6px;
}
.hours svg { width: 16px; height: 16px; }
.email {
  font-family: var(--serif);
  font-size: 22px;
  font-variation-settings: 'opsz' 24;
  word-break: break-word;
}

/* ---------- long-form pages (tracker, privacy, 404) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 27px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 24px; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--teal); }
.doc .note {
  background: var(--water-soft);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 22px 0;
}
.doc .note p { margin: 0; }
.doc .warn { background: var(--gold-soft); border-left-color: var(--gold); }
.doc .meta { color: var(--ink-3); font-size: 15px; margin-top: 10px; }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}
.path {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}
.path h3 { margin: 0 0 6px; font-size: 20px; }
.path p { margin: 0 0 12px; font-size: 15.5px; }
.path p:last-child { margin: 0; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule-soft);
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--teal-deep); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(60%, 260px); }
  .hero h1 { max-width: 16ch; }
  .app { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .support { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 64px 0; }
  .hero { padding-top: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .brand-name { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .app-copy { padding: 28px 22px; }
  .app-side { padding: 28px 22px; }
  .app-features { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .cta-row .btn, .app-actions .btn { flex: 1 1 auto; }
  .support-card { padding: 24px 20px; }
  .doc { padding: 40px 0 64px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 12px; font-size: 13.5px; }
  .brand-name { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
