/* Member app, inside the phone frame. */
.phone { --app-gutter: 18px; background: var(--bg); border-color: oklch(0.18 0.04 355); }
.phone-stage { background: var(--surface-3); }
.phone-status { color: var(--ink); }
.phone-scroll { padding-bottom: var(--s-6); }
.phone-tabbar { background: var(--surface); border-top: var(--rule); }
.phone-tabbar a { position: relative; color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.phone-tabbar a[aria-current="page"] { color: var(--primary); }
.phone-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -8px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 4px); }

/* caption beside the device */
.phone-caption { color: var(--ink-2); }
.phone-caption strong { font-family: var(--font-display); font-size: var(--t-22); letter-spacing: -0.02em; line-height: 1.15; }
.phone-caption .mods { display: flex; gap: 6px; margin: var(--s-3) 0; flex-wrap: wrap; }
.phone-caption .mods span { font: 11px var(--font-mono); padding: 2px 8px; border-radius: var(--r-full); background: var(--surface); border: var(--rule); color: var(--muted); }
.phone-caption ul { margin: var(--s-3) 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.phone-caption .try { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 6px; }
.phone-caption .try button { min-height: 32px; font-size: var(--t-12); }

/* app header */
.a-top { padding: var(--s-2) var(--app-gutter) var(--s-3); }
.a-top .kicker { margin: 0; }
.a-top h1 { font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; margin: 2px 0 0; font-variation-settings: "opsz" 60; color: var(--ink); }
.a-top h1.brand-h { color: var(--primary); }
.a-bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) calc(var(--app-gutter) - 8px); min-height: 48px; }
.a-bar .ttl { font: 700 var(--t-16)/1.2 var(--font-display); flex: 1; text-align: center; margin-right: 44px; }
.a-bar .btn-icon { width: 44px; min-height: 44px; }
.a-pad { padding: 0 var(--app-gutter); }
.a-sec { padding: 0 var(--app-gutter); margin-top: var(--s-5); }
.a-sec > h2, .a-sec .sec-h { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; font-size: var(--t-18); margin: 0 0 var(--s-3); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.a-sec .sec-h a, .a-sec .sec-h button { font: 700 var(--t-14) var(--font-body); color: var(--primary); background: none; border: 0; padding: 0; text-decoration: none; min-height: 32px; }
.a-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.a-actions a, .a-actions button { display: grid; justify-items: center; gap: 6px; padding: var(--s-3) var(--s-2); background: var(--surface); border: var(--rule); border-radius: var(--r-card); font: 700 var(--t-13)/1.2 var(--font-body); color: var(--ink); text-decoration: none; text-align: center; }
.a-actions a:hover, .a-actions button:hover { border-color: var(--root); }
.a-actions .ico { width: 24px; height: 24px; color: var(--primary); }
.a-foot { position: sticky; bottom: 0; padding: var(--s-3) var(--app-gutter); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: auto; z-index: 3; }
.chip-weather { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-13); padding: 6px 12px 6px 8px; border-radius: var(--r-full); background: var(--surface); border: var(--rule); color: var(--ink-2); margin-top: var(--s-3); }
.chip-weather .ico { width: 18px; height: 18px; color: var(--warning-ink); }

/* hero match card: the one lime surface on the home screen */
.matchcard { display: block; padding: var(--s-4); border-radius: var(--r-card); background: var(--accent); color: var(--on-accent); text-decoration: none; position: relative; overflow: hidden; }
.matchcard:hover { color: var(--on-accent); }
.matchcard > * { position: relative; }
.matchcard svg.mc-roots { position: absolute; }
.matchcard b { display: block; font: 700 var(--t-18)/1.2 var(--font-display); letter-spacing: -0.01em; max-width: 24ch; }
.matchcard p { margin: 4px 0 var(--s-3); font-size: var(--t-14); }
.matchcard .go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-full); background: var(--drench); color: var(--accent); font: 700 var(--t-14) var(--font-body); }
.matchcard svg.mc-roots { position: absolute; right: 8px; bottom: -34px; width: 96px; height: 96px; opacity: .35; }
.matchcard svg.mc-roots path { fill: none; stroke: var(--on-accent); stroke-width: 1.2; }

/* the plot plan */
.plan { width: 100%; height: auto; display: block; background: oklch(0.93 0.03 355); border-radius: var(--r-card); }
.plan .bed rect.b { fill: oklch(0.52 0.06 40); stroke: oklch(0.4 0.05 40); stroke-width: 1; cursor: pointer; transition: fill var(--dur-2) var(--ease); }
.plan .bed:hover rect.b, .plan .bed.on rect.b { fill: oklch(0.45 0.07 40); }
.plan .bed.on rect.b { stroke: var(--accent-strong); stroke-width: 3; }
.plan .bed text { font: 700 10px var(--font-body); fill: oklch(0.97 0.01 60); }
.plan .plant { transform-box: fill-box; transform-origin: center; }
.plan .plant circle { stroke: oklch(1 0 0 / .5); stroke-width: 1; }
.plan .path { fill: oklch(0.88 0.03 355); }
.plan.grow .plant { animation: sprout var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes sprout { from { transform: scale(0); } }

/* segmented progress used by onboarding */
.steps { display: flex; gap: 6px; padding: 0 var(--app-gutter); }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background-color var(--dur-3) var(--ease); }
.steps i.on { background: var(--primary); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.opt { display: grid; gap: 4px; align-content: start; text-align: left; padding: var(--s-4) var(--s-3); border-radius: var(--r-card); border: var(--bw-strong) solid var(--line); background: var(--surface); font: inherit; color: inherit; min-height: 96px; transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.opt .ico { width: 26px; height: 26px; color: var(--primary); }
.opt b { font-size: var(--t-15); }
.opt span { font-size: var(--t-12); color: var(--muted); line-height: 1.35; }
.opt[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 32px; }

/* photo header */
.ph-head { position: relative; height: 220px; flex-shrink: 0; }
.ph-head img { width: 100%; height: 100%; object-fit: cover; }
.ph-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, oklch(0.2 0.06 355 / .55), transparent 40%, transparent 55%, oklch(0.2 0.06 355 / .75)); }
.ph-head .a-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: #fff; }
.ph-head .a-bar .btn { background: oklch(0.2 0.06 355 / .45); color: #fff; }
.ph-head .cap { position: absolute; left: var(--app-gutter); right: var(--app-gutter); bottom: var(--s-4); z-index: 2; color: #fff; }
.ph-head .cap h1 { color: #fff; font-size: 30px; margin: 0; letter-spacing: -0.03em; }
.ph-head .cap p { margin: 2px 0 0; font-size: var(--t-14); opacity: .92; }

/* bottom sheet inside the phone */
.phone .sheet-body h2 { font-size: var(--t-22); }

/* stepper */
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: var(--s-2); }
.stepper button { height: 56px; border-radius: 50%; border: var(--bw-strong) solid var(--line-strong); background: var(--surface); font: 400 28px/1 var(--font-display); color: var(--primary); }
.stepper output { text-align: center; font: 600 56px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper output small { font-size: 20px; color: var(--muted); font-weight: 400; margin-left: 4px; }

@media (max-width: 600px) { .a-foot { padding-bottom: var(--s-4); } }
