/* Arbor Report: shared styles for the landing page, the web app, share and verify pages. */
:root {
  --green: #2f5d3a; --green-d: #1f4228; --green-l: #e7efe5; --amber: #8f5a0f; --amber-l: #fbf1df;
  --ink: #1d231f; --muted: #5b655e; --line: #d9ddd6; --bg: #fafaf6; --card: #ffffff; --red: #b3261e; --red-l: #fbe9e7;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--green); }
a:hover { color: var(--green-d); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--green);
  background: var(--green); color: #fff; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-l); }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b8bfb6; border-radius: 8px; font: 16px/1.4 var(--font); background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.field { margin-bottom: 14px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.error { background: var(--red-l); color: var(--red); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.ok { background: var(--green-l); color: var(--green-d); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--green-l); color: var(--green-d); }
.tag.amber { background: var(--amber-l); color: #7a4f10; }
.tag.red { background: var(--red-l); color: var(--red); }
.tag.grey { background: #eceeea; color: var(--muted); }

/* ------------------------------------------------------------------ landing */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.top nav a { margin-left: 18px; text-decoration: none; font-weight: 600; }
.hero { padding-block: 56px 40px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; font-size: .85rem; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { background: var(--green); color: #fff; text-align: left; padding: 5px 6px; font-weight: 600; }
.mock td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
section.band { padding: 48px 0; }
section.band.alt { background: #f1f3ec; }
.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.step b { display: inline-flex; width: 30px; height: 30px; border-radius: 99px; background: var(--green); color: #fff; align-items: center; justify-content: center; margin-bottom: 8px; }
.cities { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.cities .card { padding: 14px; }
.price { text-align: left; display: flex; flex-direction: column; }
.price .amount { font-size: 2.2rem; font-weight: 800; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price ul { padding-left: 18px; margin: 8px 0 16px; flex: 1; }
.price.featured { border: 2px solid var(--green); }
.founding { background: var(--green); color: #fff; border-radius: 16px; padding: 30px; display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.founding a { color: #fff; }
.founding .card { color: var(--ink); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
footer.site { padding-block: 30px 50px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 30px; }

/* ------------------------------------------------------------------ app */
.app-top { background: var(--green); color: #fff; }
.app-top .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.app-top .logo { color: #fff; }
.app-top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.app-top nav a { color: #e4eee3; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.app-top nav a[aria-current=page], .app-top nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.app-top .who { font-size: .85rem; color: #d4e3d2; }
main.app { padding-block: 22px 60px; }
.crumbs { font-size: .9rem; margin-bottom: 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { font-size: 1.6rem; margin: 0; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list a.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--ink); }
.list a.item:hover { border-color: var(--green); }
.list .meta { font-size: .85rem; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f1f3ec; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: none; border-bottom: 3px solid transparent; padding: 10px 12px; font: 600 15px var(--font); color: var(--muted); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected=true] { color: var(--green); border-color: var(--green); }
.split { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.section-edit { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.section-edit h3 { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-edit textarea { min-height: 160px; font-size: 15px; }
.section-edit .bar { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.sticky { position: sticky; top: 12px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
#map { height: 380px; border-radius: 10px; border: 1px solid var(--line); }
.sketch-box svg { width: 100%; height: auto; border-radius: 8px; }
dialog { border: none; border-radius: 12px; padding: 0; max-width: min(720px, 96vw); width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20, 30, 22, .45); }
dialog form, dialog .body { padding: 20px; }
dialog h2 { font-size: 1.25rem; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.stems { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stems input { width: 90px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
.auth { max-width: 440px; margin: 40px auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

@media (max-width: 860px) {
  .hero, .founding, .split, .grid2 { grid-template-columns: 1fr; }
  .grid3, .cities { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
}
@media (max-width: 560px) {
  .grid3, .cities { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding-top: 24px; }
  table.data th, table.data td { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.app-top .btn.ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
