/* Worked Example - shared styles. Look: "Golden Wattle" (see DECISIONS.md).
   Every page links this one file, so a change here changes the whole site. */

:root {
  --bg: #FAFAF7;          /* page background (cream) */
  --surface: #FFFFFF;     /* cards */
  --ink: #0A2A2E;         /* main text */
  --muted: #4C6468;       /* secondary text */
  --line: #DADFD9;        /* borders */
  --brand: #007A78;       /* teal */
  --band: #075E63;        /* deep teal band behind page tops */
  --band-muted: #BFE3DF;  /* secondary text on the band */
  --gold: #F9B416;        /* accent */
  --gold-soft: #FFD364;   /* gold for text on the band */
  --gold-ink: #855600;    /* gold for text on light backgrounds */
  --on-gold: #2B1B00;     /* text on gold buttons */
  --mint: #D9F1EC;
  --pale-gold: #FFECBC;
  --lilac: #E6E4FA;
  --track: #EEF3F2;
  --head: "DM Serif Display", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: -0.005em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.pill { display: inline-block; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--mint); color: var(--brand); white-space: nowrap; }
.pill.soon { background: var(--track); color: var(--muted); }

/* ---------- top band and navigation ---------- */
.top { background: var(--band); color: #fff; }
.top .eyebrow { color: var(--gold-soft); }
nav.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 10px; font: 400 24px var(--head); text-decoration: none; }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--gold); display: grid; place-items: center; color: var(--on-gold); font: 700 14px var(--body); font-style: normal; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; opacity: .9; }
.links a:hover, .links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.links .later { opacity: .55; cursor: default; }

/* Home page only: photo on the left of the band, tinted teal, fading into the plain band.
   Photo: two free Pexels photos blended (6457516 by Alexander Suhorucov, and 783681). See DECISIONS.md. */
.top.photo { position: relative; isolation: isolate; }
.top.photo::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 64%;
  background:
    linear-gradient(180deg, rgba(4,50,54,.5) 0%, rgba(4,50,54,0) 40%),
    linear-gradient(90deg, rgba(7,94,99,.5) 0%, rgba(7,94,99,.6) 45%, rgba(7,94,99,.9) 78%, var(--band) 100%),
    url(banner-sydney-office.jpg) 45% 50% / cover no-repeat;
}
.top.photo .lede, .top.photo .free { color: #fff; }
.top.photo .eyebrow, .top.photo .hero h1, .top.photo .lede, .top.photo .free { text-shadow: 0 1px 14px rgba(3,36,40,.55); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 14px 24px; border-radius: 8px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; background: var(--gold); color: var(--on-gold); border: 1.5px solid var(--gold); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.teal { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 56px 0 84px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); margin: 18px 0 22px; }
.hero h1 em { color: var(--gold-soft); }
.lede { font-size: 20px; color: var(--band-muted); max-width: 33em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.free { margin-top: 18px; font-size: 14px; color: var(--band-muted); }
.free b { color: #fff; font-weight: 600; }

.side { position: relative; }
.demo { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 24px; box-shadow: 0 2px 4px rgba(10,42,46,.06), 0 24px 48px rgba(10,42,46,.16); transform: rotate(-1.2deg); }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.demo-head span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--track); border-radius: 8px; padding: 4px; }
.tabs button { font: 600 14px var(--body); padding: 9px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.big { font: 400 64px/1 var(--head); margin: 24px 0 4px; }
.big small { font: 500 15px var(--body); color: var(--muted); margin-left: 8px; }
.bars { display: grid; gap: 10px; margin: 20px 0 16px; }
.bar { display: grid; grid-template-columns: 62px 1fr 78px; gap: 10px; align-items: center; font-size: 14px; }
.bar div { height: 14px; border-radius: 7px; background: var(--track); overflow: hidden; }
.bar div b { display: block; height: 100%; border-radius: 7px; background: var(--brand); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.bar:nth-child(2) div b { background: var(--gold); }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.demo p { font-size: 14px; color: var(--muted); }
.demo .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand); }
.scribble { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; margin-top: 14px; font: 600 24px/1.1 var(--hand); color: var(--gold-soft); transform: rotate(-2deg); }
.scribble svg { width: 46px; height: 40px; flex: none; margin-top: -8px; }
.sticker { position: absolute; z-index: 2; top: -88px; right: -40px; width: 104px; height: 104px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 600 14px/1.15 var(--body); text-align: center; display: grid; place-items: center; transform: rotate(10deg); box-shadow: 0 6px 16px rgba(0,0,0,.2); padding: 10px; }

/* ---------- home: benefits ---------- */
.wins { padding: 64px 0 20px; }
.wins .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.win-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.win-item .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--brand); display: grid; place-items: center; }
.win-item:nth-child(2) .ic { background: var(--pale-gold); color: var(--gold-ink); }
.win-item h3 { font-size: 24px; margin-bottom: 4px; }
.win-item p { font-size: 15px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding-top: 8px; }
.sec-head { max-width: 40em; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); margin: 10px 0 12px; }
.sec-head p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.steps > * { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; counter-increment: s; text-decoration: none; display: block; }
.steps > *::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 14px var(--body); margin-bottom: 12px; }
.steps b { display: block; font: 400 22px var(--head); }
.steps span { font-size: 14px; color: var(--muted); }
.steps a:hover { border-color: var(--brand); }

/* ---------- use case cards ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.case:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 16px 32px rgba(10,42,46,.12); }
.prev { height: 112px; display: grid; place-items: center; background: var(--mint); }
.case:nth-child(3n+2) .prev { background: var(--pale-gold); }
.case:nth-child(3n) .prev { background: var(--lilac); }
.prev svg { width: 170px; height: 68px; transition: transform .25s ease; }
a.case:hover .prev svg { transform: scale(1.08); }
.case .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case .num { font: 400 20px var(--head); color: var(--gold-ink); }
.case h3 { font-size: 25px; }
.case p { font-size: 15px; color: var(--muted); }
.case .get { font-size: 14px; color: var(--ink); background: var(--bg); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 6px 6px 0; margin-top: auto; }
.case .get b { font-weight: 600; }
.case .go { font-size: 15px; font-weight: 600; color: var(--brand); }
.case.coming .go { color: var(--muted); font-weight: 500; }

.ctx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ctx > div { border-top: 3px solid var(--brand); padding-top: 18px; }
.ctx h3 { font-size: 24px; margin-bottom: 8px; }
.ctx h3 a { text-decoration: none; }
.ctx h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.ctx h3 a::after { content: " \2192"; color: var(--brand); }
.ctx p { font-size: 15px; color: var(--muted); }
.note { margin-top: 28px; font-size: 14px; color: var(--muted); }

.news { background: var(--brand); color: #fff; border-radius: 14px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.news h2 { font-size: 34px; }
.news p { opacity: .85; margin-top: 6px; }
.news .soon-box { border: 1.5px dashed rgba(255,255,255,.65); border-radius: 8px; padding: 12px 22px; font-weight: 600; font-size: 15px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); margin-top: 40px; }
footer.site .made { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.flag { display: inline-block; width: 24px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-left: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
footer.site .flag { margin: 0 8px 0 0; box-shadow: 0 0 0 1px var(--line); }

/* ---------- use case pages ---------- */
.uc-hero { padding: 36px 0 64px; max-width: 46em; }
.uc-hero .crumb { font-size: 14px; color: var(--band-muted); text-decoration: none; }
.uc-hero .crumb:hover { text-decoration: underline; }
.uc-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 16px 0 18px; }
.uc-hero .lede { max-width: 36em; }
.uc-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.uc-hero .pill { background: rgba(255,255,255,.14); color: #fff; }

.uc-steps { margin-top: -34px; position: relative; z-index: 1; }
.uc-section { padding: 64px 0 0; }
.uc-section > .wrap > .sec-head { margin-bottom: 26px; }
.uc-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 15px var(--body); margin-right: 10px; vertical-align: middle; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.prose { max-width: 44em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }

.tool-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(10,42,46,.10); }
.tool-frame .bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: var(--mint); font-size: 14px; font-weight: 600; color: var(--band); }
.tool-frame iframe { display: block; width: 100%; border: 0; min-height: 720px; }

/* prompts people can copy */
.prompt { position: relative; background: #0A2A2E; color: #E8F3F1; border-radius: 10px; padding: 20px 22px; font: 500 14px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt + .prompt, .build-step + .build-step { margin-top: 18px; }
.copy { position: absolute; top: 10px; right: 10px; font: 600 12px var(--body); padding: 6px 12px; border-radius: 6px; border: 0; cursor: pointer; background: var(--gold); color: var(--on-gold); }
.build-step h3 { font-size: 24px; margin-bottom: 8px; }
.build-step > p { color: var(--muted); margin-bottom: 12px; max-width: 44em; }

/* data check box */
.datacheck { background: var(--pale-gold); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.datacheck h3 { font-size: 22px; margin-bottom: 8px; }
.datacheck p, .datacheck li { font-size: 15px; }
.datacheck ul { margin: 0; padding-left: 20px; }
.datacheck .full { grid-column: 1 / -1; font-size: 14px; color: #5A4300; }
.datacheck a { font-weight: 600; }

/* conversation replay player (assets/replay.js) */
.replay { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(10,42,46,.10); }
.replay + .replay { margin-top: 24px; }
.replay-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: var(--mint); }
.replay-bar .pill { background: var(--gold); color: var(--on-gold); }
.replay-note { font-size: 14px; font-weight: 600; color: var(--band); flex: 1; min-width: 180px; }
.replay-btns { display: flex; gap: 8px; }
.replay-btns .btn.ghost { color: var(--band); }
.replay-log { padding: 22px; max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.replay-log.open { max-height: none; }
.replay-hint { color: var(--muted); font-size: 15px; text-align: center; padding: 36px 0; }
.replay-error { padding: 18px; color: #8A1F11; }
.msg { max-width: 46em; }
.msg .who { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.msg .bubble { border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.msg.you { align-self: flex-end; }
.msg.you .who { text-align: right; }
.msg.you .bubble { background: var(--band); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.ai .bubble { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.note { align-self: center; font-size: 13px; color: var(--muted); background: var(--track); border-radius: 999px; padding: 4px 14px; }
.msg.typing .bubble { color: var(--muted); letter-spacing: .2em; animation: wx-pulse 1s ease-in-out infinite; }
@keyframes wx-pulse { 50% { opacity: .35; } }
.msg.in { animation: wx-rise .35s ease both; }
@keyframes wx-rise { from { opacity: 0; transform: translateY(8px); } }
.msg .part { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.msg .part.shown { opacity: 1; transform: none; }
.bubble > * + * { margin-top: 10px; }
.bubble h4 { font: 600 16px var(--body); margin: 0; }
.bubble ul, .bubble ol { margin: 0; padding-left: 22px; }
.bubble li + li { margin-top: 4px; }
.bubble blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--gold); color: var(--muted); }
.bubble code { font: 500 14px var(--mono); background: var(--track); padding: 1px 5px; border-radius: 4px; }
.bubble table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.bubble th, .bubble td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bubble th { font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* status banner for pages not yet tested in the real product */
.status-note { background: var(--lilac); border-radius: 10px; padding: 14px 18px; font-size: 15px; margin-bottom: 22px; }
.status-note b { font-weight: 600; }

.source { font-size: 14px; color: var(--muted); margin-top: 14px; }
.source a { color: var(--brand); }

@media (max-width: 860px) {
  body { font-size: 16px; }
  nav.site { flex-wrap: wrap; row-gap: 10px; }
  .links { gap: 6px 16px; font-size: 14px; flex-wrap: wrap; }
  .links .later { display: none; }
  .hero, .cases, .ctx, .wins .grid, .datacheck { grid-template-columns: 1fr; }
  .hero { gap: 40px; padding: 32px 0 64px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sticker { top: -30px; right: -6px; width: 88px; height: 88px; font-size: 12px; }
  .demo { transform: none; margin-top: 24px; }
  .top.photo::before {
    width: 100%; bottom: auto; height: 680px;
    background:
      linear-gradient(180deg, rgba(4,50,54,.4) 0%, rgba(4,50,54,0) 30%),
      linear-gradient(180deg, rgba(7,94,99,.62) 0%, rgba(7,94,99,.7) 55%, var(--band) 100%),
      url(banner-sydney-office.jpg) 50% 35% / cover no-repeat;
  }
  .big { font-size: 52px; }
  .news { padding: 28px; }
  .panel, .datacheck { padding: 20px; }
  section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 20px; white-space: nowrap; }
  nav.site { flex-wrap: wrap; row-gap: 10px; padding: 16px 0; }
  .links { width: 100%; gap: 6px 16px; font-size: 13px; flex-wrap: wrap; }
  .links a { white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .scribble { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
