/* Snail Guardian site (draft). Warm and friendly: a sunny hero with the snails gathered round the headline, soft
   rounded cards with coloured icon circles, a dotted path through the steps and a yellow guarantee. Each page is a
   run of full-width sections (main > section), each with an inner .in that sets the page width. */

/* Fonts, hosted with the site: Fredoka (500, 600) and Nunito (400, 600, 700), latin subset, each one variable font
   file. Both are under the SIL Open Font License; see fonts/OFL-Fredoka.txt and fonts/OFL-Nunito.txt. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/fredoka-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --canvas: #fffaf0; --surface: #ffffff; --field: #ffffff; --ink: #2b2118; --ink-soft: #4a3d30; --muted: #6e6152;
  --line: #eadfca; --dots: #e3c98f; --yellow: #ffd23f; --yellow-soft: #fff1c4; --on-yellow: #2b2118;
  --leaf: #2f7d4f; --leaf-bg: #2f7d4f; --leaf-soft: #e2f3e7; --sky: #1f5f8b; --sky-soft: #e4f1fb;
  --rose: #9a3b22; --rose-soft: #fde7e1; --focus: #e9ad00; --draft-bg: #fff1c2; --draft-ink: #6b4b00;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif; --body: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(80, 50, 0, .04), 0 14px 32px -20px rgba(80, 50, 0, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #17140f; --surface: #221d16; --field: #2a241c; --ink: #f6efe2; --ink-soft: #ddd3c2; --muted: #ab9f8c;
    --line: #3b3228; --dots: #5c4b2b; --yellow-soft: #352c14; --leaf: #82d4a3; --leaf-bg: #24603d; --leaf-soft: #193024;
    --sky: #8cc4ea; --sky-soft: #172936; --rose: #f2a58f; --rose-soft: #3a221b; --focus: #ffd23f;
    --draft-bg: #3a2f12; --draft-ink: #ffde85; --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 14px 32px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #17140f; --surface: #221d16; --field: #2a241c; --ink: #f6efe2; --ink-soft: #ddd3c2; --muted: #ab9f8c;
  --line: #3b3228; --dots: #5c4b2b; --yellow-soft: #352c14; --leaf: #82d4a3; --leaf-bg: #24603d; --leaf-soft: #193024;
  --sky: #8cc4ea; --sky-soft: #172936; --rose: #f2a58f; --rose-soft: #3a221b; --focus: #ffd23f;
  --draft-bg: #3a2f12; --draft-ink: #ffde85; --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 14px 32px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.top, main > section, footer { padding-inline: 16px; }
.in { max-width: 1120px; margin-inline: auto; }

/* Draft notes: what Snail Guardian still has to confirm. Never part of the finished site. */
.draftbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding: 8px 16px; background: var(--draft-bg); color: var(--draft-ink); font: 13px/1.4 system-ui, sans-serif; text-align: center; }
.draft { display: inline-block; background: var(--draft-bg); color: var(--draft-ink); border-radius: 10px; padding: 3px 10px; font: 500 13px/1.4 system-ui, sans-serif; }

/* Header */
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--yellow-soft); color: var(--ink); }
.nav a.talk { background: var(--ink); color: var(--canvas); margin-left: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 6px 22px; border-radius: 999px; font: 600 15px/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn .chip { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; font-size: 16px; margin-right: -14px; }
.btn-primary { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 6px 0 #e3b000; }
.btn-primary .chip { background: var(--on-yellow); color: var(--yellow); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #e3b000; }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-light { background: #fff; color: var(--leaf-bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero: centred, with the snails either side and a soft wave into the page */
main > section.hero { overflow: clip; padding-block: 0; position: relative; background: linear-gradient(180deg, var(--yellow-soft), color-mix(in srgb, var(--yellow-soft) 45%, var(--canvas)) 70%, var(--canvas)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: var(--canvas); clip-path: ellipse(70% 100% at 50% 100%); }
.hero .in { position: relative; display: grid; justify-items: center; text-align: center; padding-block: 56px 96px; }
.hero-copy { display: grid; justify-items: center; gap: 18px; max-width: 46rem; position: relative; z-index: 1; }
.eyebrow { background: var(--surface); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--leaf); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(38px, 6.4vw, 70px); }
.mark { color: var(--leaf); background: linear-gradient(transparent 70%, var(--yellow) 70% 92%, transparent 92%); padding-inline: 4px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 36em; }
.hero .actions { justify-content: center; margin-top: 6px; }
.guide { display: flex; align-items: center; gap: 12px; margin-top: 30px; position: relative; z-index: 1; text-align: start; }
.guide img { width: 76px; height: 76px; }
.guide .say { background: var(--surface); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 15px; color: var(--ink-soft); max-width: 22em; box-shadow: var(--shadow); }
.guide .say b { color: var(--ink); }
.cast { position: absolute; inset: 0; pointer-events: none; }
.cast img { position: absolute; }
.cast .c1 { width: 190px; left: -10px; bottom: 30px; animation: bob 5s ease-in-out infinite; }
.cast .c2 { width: 190px; right: -10px; bottom: 50px; animation: bob 6s ease-in-out infinite .8s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

/* Sections */
main > section { padding-block: 64px; }
.head { display: grid; gap: 12px; max-width: 44em; margin-bottom: 30px; }
.head h2 { font-size: clamp(28px, 3.8vw, 42px); }
.head p { color: var(--muted); font-size: 17px; }
.label { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--leaf); }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 4px 10px; white-space: nowrap; justify-self: start; background: var(--leaf-soft); color: var(--leaf); }
.tag.next { background: var(--rose-soft); color: var(--rose); }
.tag.dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.card, .outcome, .ev { background: var(--surface); border-radius: 28px; padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.card h3, .outcome h3 { font-size: 20px; }
.card p, .outcome p, .ev p { color: var(--muted); }
.card ul, .way ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.small { font-size: 14px; color: var(--muted); }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.outcome svg { width: 56px; height: 56px; padding: 14px; border-radius: 999px; background: var(--yellow-soft); color: var(--ink); }
.outcome:nth-child(2) svg { background: var(--leaf-soft); color: var(--leaf); }
.outcome:nth-child(3) svg { background: var(--sky-soft); color: var(--sky); }

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.way { border-radius: 32px; padding: clamp(24px, 4vw, 38px); display: grid; gap: 14px; align-content: start; position: relative; box-shadow: var(--shadow); }
.way > img { position: absolute; top: 18px; right: 18px; width: 96px; }
.way h3 { font-size: clamp(23px, 2.7vw, 30px); padding-right: 96px; }
.way.service { background: var(--surface); }
.way.service p, .way.service li { color: var(--muted); }
.way.product { background: var(--leaf-bg); color: #eaf6ee; }
.way.product h3 { color: #fff; }
.way.product .tag { background: var(--yellow); color: var(--on-yellow); }
.way .go { justify-self: start; margin-top: 6px; }

.s-soon .card { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
.size { display: inline-block; justify-self: start; background: var(--yellow-soft); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.note { margin-top: 18px; display: flex; gap: 10px; background: var(--leaf-soft); border-radius: 20px; padding: 14px 18px; color: var(--ink-soft); }

/* Steps on a dotted path */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; border-top: 3px dotted var(--dots); }
.steps li { counter-increment: s; position: relative; display: grid; gap: 8px; align-content: start; background: var(--surface); border-radius: 24px; padding: 64px 18px 20px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 18px; width: 46px; height: 46px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font: 600 20px var(--display); box-shadow: 0 0 0 6px var(--canvas); }
.steps h3 { font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; }
.measures { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.measures .label { margin-right: 4px; }
.measures .m { background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); }

/* Guarantee: the sunny block, the same in light and dark */
.targets { --ink: #2b2118; --ink-soft: #4a3d30; --muted: #6e6152; --surface: #fff; --leaf: #2f7d4f; --leaf-soft: #e2f3e7; --yellow-soft: #fff1c4; color: var(--ink); background: var(--yellow); border-radius: 36px; padding: clamp(24px, 5vw, 52px); display: grid; gap: 26px; }
.targets .label { color: var(--ink); opacity: .7; }
.targets .head { margin: 0; }
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tcard { background: var(--surface); border-radius: 26px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.tcard .num { font: 600 clamp(44px, 6vw, 64px)/1 var(--display); color: var(--leaf); font-variant-numeric: tabular-nums; }
.tcard p { color: var(--muted); }
.tag.aim { background: var(--yellow-soft); color: var(--ink-soft); }
.fine { color: var(--ink-soft); font-size: 15px; max-width: 52em; }

.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ev h3 { font-size: 18px; }
.ev .figure { font: 600 28px/1.2 var(--display); color: var(--leaf); font-variant-numeric: tabular-nums; }
.ev .scope { font-size: 14px; border-top: 2px dotted var(--line); padding-top: 10px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principles div { display: grid; gap: 6px; align-content: start; padding: 20px 20px 20px 62px; background: var(--surface); border-radius: 24px; position: relative; box-shadow: var(--shadow); }
.principles div::before { content: "✓"; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-weight: 700; }
.principles h3 { font-size: 17px; }
.principles p { color: var(--muted); font-size: 15px; }

.s-about .card p { color: var(--ink-soft); }
.why { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.why img { width: 96px; }

/* Contact: a warm card with a snail peeking in */
.contact { background: linear-gradient(160deg, var(--surface), var(--yellow-soft)); border-radius: 36px; padding: clamp(24px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; box-shadow: var(--shadow); }
.contact h2 { font-size: clamp(28px, 3.8vw, 42px); }
.contact .intro { display: grid; gap: 14px; align-content: start; }
.contact .intro p { color: var(--ink-soft); }
.peek { width: 170px; margin-top: 12px; }
.email { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.email code { font-family: var(--body); font-weight: 600; padding: 8px 14px; border-radius: 999px; user-select: all; font-size: 15px; background: var(--field); box-shadow: inset 0 0 0 2px var(--line); }
.email button { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--ink); color: var(--canvas); }

/* Form */
form { display: grid; gap: 14px; align-content: start; }
form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.chips label { position: relative; display: block; font-weight: 600; }
.chips input { position: absolute; inset: 0; opacity: 0; width: 100%; margin: 0; cursor: pointer; }
.chips span { display: block; border-radius: 999px; padding: 9px 16px; border: 1.5px solid var(--line); background: var(--field); }
.chips input:checked + span { background: var(--leaf-bg); border-color: var(--leaf-bg); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.formnote { font-size: 14px; border-radius: 14px; padding: 12px 14px; background: var(--field); color: var(--ink-soft); }
.formnote[data-state="ok"] { background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }
.formnote[data-state="error"] { background: var(--rose-soft); color: var(--rose); font-weight: 600; }
form .btn { justify-self: start; }
form .btn:disabled { opacity: .6; cursor: progress; }
.btn.wa svg { width: 22px; height: 22px; color: var(--leaf); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* the honeypot field */

footer { border-top: 2px dotted var(--line); color: var(--muted); }
footer .in { padding-block: 36px 56px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* App Builder page: the journey is a dotted path through the snails */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: j; position: relative; }
.journey::before { content: ""; position: absolute; left: 54px; top: 40px; bottom: 40px; border-left: 3px dotted var(--dots); }
.journey li { counter-increment: j; position: relative; background: var(--surface); border-radius: 24px; padding: 18px 22px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; box-shadow: var(--shadow); }
.journey .pic { position: relative; width: 64px; height: 64px; }
.journey .pic img { width: 64px; height: 64px; }
.journey .pic::after { content: counter(j); position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font: 600 13px/1 var(--display); display: grid; place-items: center; }
.journey h3 { font-size: 18px; }
.journey p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.journey li.later { background: var(--canvas); box-shadow: none; border: 2px dashed var(--line); }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.rule .arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-size: 22px; }
.given { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 15px; margin: 0; }
.given dt { color: var(--muted); font-weight: 700; }
.given dd { margin: 0; color: var(--ink); }
.pass { display: inline-flex; gap: 8px; align-items: center; background: var(--leaf-soft); color: var(--leaf); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.owners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.owners .card { box-shadow: none; }
.owners .card:nth-child(1) { background: var(--yellow-soft); }
.owners .card:nth-child(2) { background: var(--leaf-soft); }
.owners .card:nth-child(3) { background: var(--sky-soft); }
.owners .card:nth-child(4) { background: var(--rose-soft); }
.owners .card p { color: var(--ink-soft); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.status { background: var(--leaf-bg); color: #eaf6ee; border-radius: 36px; padding: clamp(24px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.status-copy { display: grid; gap: 10px; }
.status h2 { color: #fff; }
.status .label { color: var(--yellow); }
.status .btn { justify-self: start; margin-top: 8px; }

/* Privacy and other text pages */
main > section.text { background: linear-gradient(180deg, var(--yellow-soft), var(--canvas) 320px); padding-block: 40px 56px; }
.prose { max-width: 46em; display: grid; gap: 14px; }
.prose h1 { font-size: clamp(32px, 4.6vw, 48px); margin-top: 4px; }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose .meta { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .steps::before { display: none; }
  .principles, .owners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast .c1, .cast .c2 { width: 130px; }
}
@media (max-width: 760px) {
  .pair, .outcomes, .ways, .tgrid, .evidence, .contact, .row2, .rule, .status { grid-template-columns: minmax(0, 1fr); }
  .hero .in { padding-top: 120px; }
  .cast .c1 { width: 104px; left: calc(50% - 112px); top: 10px; bottom: auto; }
  .cast .c2 { width: 104px; right: calc(50% - 112px); top: 10px; bottom: auto; }
  .guide { flex-direction: column; text-align: center; }
  .guide .say { border-radius: 20px; }
  main > section { padding-block: 44px; }
  .peek { display: none; }
  .rule .arrow { transform: rotate(90deg); justify-self: center; }
  .journey::before { left: 48px; }
  .journey li { grid-template-columns: 52px minmax(0, 1fr); }
  .journey .pic, .journey .pic img { width: 52px; height: 52px; }
  .journey .tag { grid-column: 2; }
  .status > img { order: -1; width: 96px; }
}
@media (max-width: 520px) {
  .steps, .principles, .owners { grid-template-columns: minmax(0, 1fr); }
  .way h3 { padding-right: 72px; }
  .way > img { width: 72px; }
  .nav a:not(.talk):not(.menu-ab) { display: none; }
  .top .in { flex-wrap: nowrap; gap: 8px; }
  .top .brand { font-size: 16px; gap: 8px; }
  .top .brand img { width: 32px; height: 32px; }
  .top .nav a { padding: 8px 9px; font-size: 13.5px; }
  .top .nav a.talk { margin-left: 2px; }
}
