/* PhytoMaps self-serve site: shared look for the start page, the result page and the order page. */
:root {
  --ink: #073E3B; --teal: #008080; --teal-2: #0B5F5B; --mint: #E6F4F2; --paper: #F6FAF9; --line: #D5E5E2;
  --gold: #E4B73D; --gold-ink: #6B5210; --muted: #5B7572; --danger: #B5412B; --white: #fff;
  --radius: 16px; --shadow: 0 1px 2px rgba(7, 62, 59, 0.06), 0 8px 28px rgba(7, 62, 59, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: var(--ink); color: var(--paper); }
.top img { height: 30px; display: block; }
.top .sp { flex: 1; }
.top a.plain { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 14px; opacity: 0.9; }
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: inherit; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; cursor: pointer; opacity: 0.75; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); opacity: 1; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { background: var(--ink); color: var(--paper); padding: clamp(28px, 6vw, 64px) 0 clamp(72px, 9vw, 110px); }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin-top: 18px; max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); color: #CFE6E2; }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 0; list-style: none; font-weight: 600; font-size: 14.5px; }
.hero .ticks li::before { content: "✓"; color: var(--gold); margin-right: 8px; font-weight: 800; }

.flow { margin-top: clamp(-64px, -6vw, -44px); padding-bottom: 72px; display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.step-head { display: flex; align-items: center; gap: 14px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal-2); font-weight: 800; }
.card.done .num { background: var(--teal); color: #fff; }
.card.locked { opacity: 0.55; }
.card.locked .body { display: none; }
.step-head h2 { font-size: 20px; font-weight: 700; }
.step-head .picked { margin-left: auto; font-weight: 600; color: var(--teal-2); text-align: right; font-size: 15px; }
.step-head .change { border: 0; background: none; color: var(--teal); font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0 0 0 10px; font-size: 14px; }
.body { margin-top: 18px; }
.hint { color: var(--muted); font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.chip.soon { color: var(--muted); border-style: dashed; }
.chip small { font-weight: 600; color: var(--muted); font-size: 12px; }
.chip .flag { font-size: 19px; line-height: 1; }

.field { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fff; outline: none; }
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.12); }
.field.big { font-size: 18px; padding: 16px 18px; }
label.lab { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.results { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.results button { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 15px; cursor: pointer; }
.results button:hover, .results button:focus-visible { border-color: var(--teal); background: var(--mint); outline: none; }
.results b { font-weight: 700; }
.results span { color: var(--muted); font-size: 14px; }
.results .tag { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--teal-2); background: var(--mint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.results .tag.warn { color: var(--gold-ink); background: #FBF1D3; }
.linkbtn { border: 0; background: none; color: var(--teal); font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

.holes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.holes button { aspect-ratio: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; font-weight: 800; font-size: 19px; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.holes button small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.holes button:hover { border-color: var(--teal); }
.holes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.holes button[aria-pressed="true"] small { color: #BFE0DB; }
.loop { font-weight: 700; font-size: 13px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
#map { height: 420px; border-radius: 14px; border: 1px solid var(--line); background: #dfe9e7; z-index: 0; }
.holepin { background: #fff; border: 2px solid var(--ink); color: var(--ink); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font: 800 12px/1 "Plus Jakarta Sans", sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.holepin.on { background: var(--gold); }
.clickpin { border-radius: 50%; width: 22px; height: 22px; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.clickpin.tee { background: #1E6FD9; } .clickpin.green { background: #1F9D55; }
.notice { background: #FBF1D3; color: var(--gold-ink); border-radius: 12px; padding: 12px 15px; font-size: 14.5px; font-weight: 500; }
.notice.info { background: var(--mint); color: var(--teal-2); }
.notice.bad { background: #FBE4DE; color: var(--danger); }

details.extra { border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px 15px; margin-top: 16px; }
details.extra summary { cursor: pointer; font-weight: 600; }
details.extra .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 700px) { details.extra .grid2 { grid-template-columns: 1fr; } }
.drop { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.drop b { display: block; margin-bottom: 4px; }
.drop input { margin-top: 10px; width: 100%; font-size: 13.5px; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: var(--gold); color: #1F1A05; font-weight: 800; font-size: 18px; padding: 16px 26px; cursor: pointer; text-decoration: none; }
.cta:hover { filter: brightness(1.04); }
.cta:disabled { background: #E3E9E8; color: #8FA3A0; cursor: not-allowed; }
.cta.teal { background: var(--teal); color: #fff; }
.cta.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-size: 15px; padding: 11px 16px; font-weight: 700; }
.cta.small { font-size: 15px; padding: 11px 16px; border-radius: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.progress { text-align: left; }
.bar { height: 10px; border-radius: 999px; background: var(--mint); overflow: hidden; margin: 18px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #27B3A6); border-radius: 999px; transition: width 0.8s ease; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.steps li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-weight: 500; }
.steps li i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now i { border-color: var(--teal); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.ok { color: var(--teal-2); }
.steps li.ok i { background: var(--teal); border-color: var(--teal); }
.steps li.ok i::before { content: "✓"; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.now i { animation: none; } .bar i { transition: none; } }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 64px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how div { padding: 4px 2px; }
.how h3 { font-size: 17px; margin-bottom: 6px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13.5px; }

/* result page */
.viewer { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #0b2523; display: block; box-shadow: var(--shadow); }
@media (max-width: 700px) { .viewer { aspect-ratio: 3 / 4; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.facts div { min-width: 90px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .tools { grid-template-columns: 1fr; } }
.tools h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.tools h3 span { width: 30px; height: 30px; border-radius: 9px; background: var(--mint); display: grid; place-items: center; font-size: 16px; }
.tools p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.copy { display: flex; gap: 8px; margin-top: 12px; }
.copy input, .copy textarea { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; resize: none; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.qr img { width: 124px; height: 124px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upsell { background: var(--ink); color: var(--paper); border: 0; }
.upsell h2 { font-size: clamp(22px, 3vw, 30px); }
.upsell p { color: #CFE6E2; margin-top: 8px; max-width: 60ch; }
.upsell .price { font-size: 15px; color: #CFE6E2; margin-top: 14px; }
.upsell .price b { color: var(--gold); font-size: 26px; }
.checks { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }

/* order page */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }
.pack { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: #fff; text-align: left; }
.pack[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.pack b { font-size: 18px; display: block; }
.pack span { font-size: 24px; font-weight: 800; display: block; margin-top: 6px; }
.addon { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.addon input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }
.addon b { display: block; }
.addon .p { margin-left: auto; font-weight: 800; white-space: nowrap; }
.sum { background: var(--mint); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; }
.sum .tot { font-weight: 800; font-size: 19px; border-top: 1px solid #BFDCD7; padding-top: 8px; margin-top: 4px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form2 { grid-template-columns: 1fr; } }
.radio { display: flex; gap: 10px; flex-wrap: wrap; }
.radio label { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 15px; cursor: pointer; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.radio input { accent-color: var(--teal); }
table.adm { width: 100%; border-collapse: collapse; font-size: 13px; }
table.adm th, table.adm td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* phone: keep the top bar on one line */
.top a.plain { white-space: nowrap; }
@media (max-width: 560px) { .top a.plain { display: none; } .top img { height: 26px; } }
