/* Bloom Basin — microsite styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FBF7EE;
  --ivory: #FFFDF8;
  --paper: #F3EDE0;
  --line: #E4DCCB;
  --ink: #1C332F;
  --muted: #55665F;
  --teal: #1E5E5A;
  --teal-deep: #164844;
  --teal-soft: #DCEBE6;
  --sage: #8FAE93;
  --sage-soft: #E5EEE2;
  --sun: #F2B632;
  --sun-deep: #8A5A00;
  --sun-soft: #FCF0D2;
  --moon: #6F8FD8;
  --moon-deep: #34509A;
  --moon-soft: #E6ECFA;
  --rose: #EE7F74;
  --rose-deep: #A7413A;
  --rose-soft: #FCE6E1;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(28, 51, 47, 0.05), 0 10px 30px rgba(28, 51, 47, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", ui-rounded, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(143, 174, 147, 0.20) 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(242, 182, 50, 0.10) 0%, transparent 60%),
    var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 238, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.top nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { display: block; padding: 7px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); background: var(--paper); }
.top nav a[aria-current="page"] { color: var(--teal-deep); background: var(--teal-soft); }

/* Badges & buttons */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.2px; color: var(--teal-deep); background: var(--ivory); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(30, 94, 90, 0.25); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--ivory); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; font-size: 16px; border: 1px dashed rgba(30, 94, 90, 0.35); cursor: default; }
.status-pill svg { flex: none; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 84px); line-height: 1; letter-spacing: -2.5px; font-weight: 800; margin: 22px 0 18px; color: var(--ink); }
.hero h1 span { color: var(--teal); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 32ch; margin-bottom: 14px; }
.hero .sub { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.garden-dots { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--muted); list-style: none; }
.garden-dots li { display: inline-flex; align-items: center; gap: 8px; }
.garden-dots i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Pond preview */
.pond-card { position: relative; background: linear-gradient(180deg, var(--ivory), var(--paper)); border: 1px solid var(--line); border-radius: 36px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(28, 51, 47, 0.25), var(--shadow); max-width: 420px; width: 100%; justify-self: center; }
.pond-card > svg { display: block; width: 100%; height: auto; }
.pond-caption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.leaf-deco { position: absolute; pointer-events: none; }

/* Pond animation (subtle, disabled for reduced motion) */
.sway { animation: sway 5.5s ease-in-out infinite; transform-box: view-box; }
@keyframes sway { 0%, 100% { transform: translateX(-34px); } 50% { transform: translateX(34px); } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 4.5s ease-out infinite; }
.ripple.r2 { animation-delay: 2.2s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.drop { animation: drop 7s cubic-bezier(.5, 0, .75, 1) infinite; transform-box: view-box; }
@keyframes drop {
  0%, 12% { transform: translateY(0); opacity: 0; }
  16% { opacity: 1; }
  40% { transform: translateY(184px); opacity: 1; }
  46%, 100% { transform: translateY(184px); opacity: 0; }
}
.pair { animation: pair 7s ease-in-out infinite; }
@keyframes pair { 0%, 40% { opacity: 1; } 46%, 92% { opacity: 0; } 100% { opacity: 1; } }
.merged { transform-box: fill-box; transform-origin: center; animation: merged 7s ease-out infinite; }
@keyframes merged {
  0%, 41% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.12); opacity: 1; }
  56%, 88% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(.9); opacity: 0; }
}
.merge-tag { animation: tag 7s ease-out infinite; }
@keyframes tag { 0%, 44% { opacity: 0; transform: translateY(8px); } 52%, 80% { opacity: 1; transform: translateY(0); } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
.bob { transform-box: fill-box; transform-origin: center; animation: bob 6s ease-in-out infinite; }
.bob.b2 { animation-delay: -2s; } .bob.b3 { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(4deg); } }

.motion-toggle { position: absolute; top: 26px; right: 26px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); color: var(--teal-deep); background: rgba(255, 253, 248, 0.92); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.motion-toggle:hover { background: var(--ivory); }
.paused .sway, .paused .ripple, .paused .drop, .paused .pair, .paused .merged, .paused .merge-tag, .paused .bob { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .sway, .ripple, .drop, .pair, .merged, .merge-tag, .bob { animation: none !important; }
  .drop, .ripple { opacity: 0; }
  .merged, .merge-tag { opacity: 1; transform: none; }
  .pair { opacity: 0; }
  .motion-toggle { display: none; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.3px; margin-bottom: 8px; line-height: 1.25; }
.card p { color: var(--muted); }

/* Gardens */
.gardens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.garden { position: relative; overflow: hidden; }
.garden::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent); }
.garden .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 14px; }
.garden.sun { --accent: var(--sun); --accent-soft: var(--sun-soft); --accent-deep: var(--sun-deep); }
.garden.moon { --accent: var(--moon); --accent-soft: var(--moon-soft); --accent-deep: var(--moon-deep); }
.garden.rose { --accent: var(--rose); --accent-soft: var(--rose-soft); --accent-deep: var(--rose-deep); }
.chain { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; margin: 18px 0 6px; padding: 16px 12px 12px; border-radius: 16px; background: var(--accent-soft); min-height: 92px; }
.chain svg { display: block; flex: none; }
.chain-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 4px; margin-bottom: 14px; }
.final { font-size: 15px; color: var(--ink) !important; }
.final strong { color: var(--accent-deep); }

/* Plan section */
.plan { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.rules { list-style: none; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.rules .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); font-weight: 800; font-size: 15px; }
.rules h3 { font-size: 17px; margin-bottom: 2px; }
.rules p { color: var(--muted); font-size: 15.5px; }
.example { background: var(--teal); color: #EAF3F0; border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 40px -20px rgba(22, 72, 68, 0.6); position: sticky; top: 92px; }
.example h3 { color: #fff; font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.example p { color: #D3E6E0; }
.example ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.example ol li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15.5px; color: #EAF3F0; }
.example ol li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.example .note { margin-top: 18px; font-size: 14px; color: #C2DAD3; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mode ul { margin: 14px 0 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.mode li { position: relative; padding-left: 24px; color: var(--muted); }
.mode li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.mode .mode-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.boards { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.boards div { background: var(--sage-soft); border-radius: 16px; padding: 16px 18px; }
.boards strong { display: block; font-size: 15.5px; }
.boards span { color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta { text-align: center; background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; border-radius: 32px; padding: 56px 28px; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: #D3E6E0; max-width: 46ch; margin: 0 auto 26px; font-size: 18px; }
.cta .status-pill { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta .actions { justify-content: center; }
.cta :focus-visible { outline-color: #fff; }
.cta-deco { position: absolute; opacity: .18; pointer-events: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 56px; background: var(--paper); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.foot p { font-size: 14px; color: var(--muted); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Documents (support, privacy, terms) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 24px; }
.doc .kicker { margin-bottom: 6px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -1.4px; font-weight: 800; margin-bottom: 12px; }
.doc .meta { color: var(--muted); margin-bottom: 8px; }
.doc .intro { font-size: 18px; color: var(--muted); margin: 18px 0 28px; }
.doc h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.4px; margin: 40px 0 12px; line-height: 1.25; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: #33473F; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc .card { margin: 18px 0; }
.toc { background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 24px 0 8px; }
.toc h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); font-family: var(--font); }
.toc ol { columns: 2; column-gap: 28px; display: block; margin: 0; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.todo { display: inline; background: var(--sun-soft); color: #6B4500; border: 1px dashed #D9A12A; border-radius: 6px; padding: 0 6px; font-weight: 600; font-size: 0.92em; white-space: normal; }
.draft-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sun-soft); border: 1px solid #EED49A; color: #5C3D00; border-radius: 16px; padding: 14px 18px; font-size: 15px; margin: 18px 0 8px; }
.draft-note p { color: #5C3D00 !important; }

.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.contact-card .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); display: grid; place-items: center; }
.contact-card a.email { font-size: 18px; font-weight: 700; word-break: break-word; }

.faq { background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; margin: 10px 0; box-shadow: 0 1px 2px rgba(28, 51, 47, 0.04); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; font-weight: 600; position: relative; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 20px 18px; }
.faq .ans p + p, .faq .ans ul { margin-top: 10px; }
.faq .ans ul { padding-left: 22px; display: grid; gap: 6px; }

.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--ivory); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); font-weight: 650; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead, .hero .sub { margin-left: auto; margin-right: auto; }
  .actions, .garden-dots { justify-content: center; }
  .gardens { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan { grid-template-columns: 1fr; }
  .example { position: static; }
  .boards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .toc ol { columns: 1; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .top .wrap { justify-content: center; }
  .top nav a { padding: 6px 10px; font-size: 14.5px; }
  .card { padding: 22px; }
  .contact-card { grid-template-columns: 1fr; }
  .pond-card { border-radius: 28px; padding: 12px; }
  .motion-toggle { top: 18px; right: 18px; }
  .actions .btn, .actions .status-pill { width: 100%; }
  .cta { padding: 44px 20px; border-radius: 26px; }
}
