/* Pip & Pot, artled Gouache (DESIGN.md). Light theme, sage cream page. */
@font-face { font-family: "Young Serif"; src: url("../../../_shared/fonts/young-serif-400.woff2?v=2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../../../_shared/fonts/nunito-var.woff2?v=2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #EEF1E4;        /* sage cream, the painting's light */
  --surface: #FAFBF5;
  --bark: #2B241C;      /* text: 13.37:1 on bg */
  --muted: #5B5447;     /* 6.54:1 on bg, 7.20:1 on surface */
  --leaf: #2F6B3A;      /* primary: 5.58:1 on bg */
  --on-leaf: #FAFBF5;   /* 6.14:1 on leaf */
  --terracotta: #E07A55; --terracotta-text: #A8432A; /* bark on fill 5.16:1; text 5.24:1 on bg */
  --butter: #F2C94C;    /* highlight: bark on it 9.65:1 */
  --line: rgba(43, 36, 28, .13); --line-2: rgba(43, 36, 28, .3);
  --glass: rgba(250, 251, 245, .72);
  --focus: #A8432A;
  --link: #2F6B3A;
  --shadow: 0 10px 30px -12px rgba(43, 36, 28, .25);
  --radius-card: 24px; --radius-input: 12px;
  --display: "Young Serif", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--bark); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a[href], button, summary, label[for], input[type="range"], select, input[type="date"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 90; background: var(--bark); color: var(--bg); padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.mist { color: var(--muted); } .small { font-size: .9rem; }
.ph { font-size: 1.15em; vertical-align: -0.15em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

/* Logo mark: a watering drop over a sill line, cropped to its box. */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.35rem; min-height: 44px; flex: none; color: var(--bark); }
.logo svg { flex: none; overflow: visible; }
.logo-drop { fill: var(--terracotta); }
.logo-sill { stroke: var(--leaf); stroke-width: 2.6; stroke-linecap: round; }

/* Fictional notice, always visible near the top. */
.note-line { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; text-align: center; padding: 8px 16px; }
.note-line a { color: var(--link); }

/* Header: transparent over the hero, light glass after scroll. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color 220ms var(--ease), border-color 220ms var(--ease); border-bottom: 1px solid transparent; }
.nav.solid, .nav.open { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav .wrap-wide { display: flex; align-items: center; min-height: 80px; gap: 24px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1.02rem; color: var(--bark); transition: background-color 160ms var(--ease); }
.nav-links a:hover { background: rgba(43, 36, 28, .07); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-right .menu-btn, .only-menu { display: none; }

/* Buttons: cream is the outline button, leaf the primary fill (GO3: dark text on bright fills; leaf is deep enough for cream text). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2); font: 800 1rem var(--body); text-decoration: none; color: var(--bark); background: var(--surface); transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-leaf { background: var(--leaf); color: var(--on-leaf); border-color: transparent; }
.btn-leaf:hover { background: var(--leaf); filter: brightness(1.08); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
/* GO1/PA6: outline buttons over art carry their own cream ground. */
.artband .btn:not(.btn-leaf), .hero .btn:not(.btn-leaf) { background: var(--glass); border-color: rgba(43, 36, 28, .35); }
.artband .btn:not(.btn-leaf):hover, .hero .btn:not(.btn-leaf):hover { background: #FAFBF5; }

/* Hero: the glasshouse painting, headline on the calm bright left, cream scrim behind the glyphs. */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 130px 24px 150px; }
.hero .art { position: absolute; inset: 0 0 auto; height: max(100%, 43vw); z-index: -2; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
@media (min-aspect-ratio: 16/11) { .hero .art { height: 43vw; } }
.hero .art img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(250, 251, 245, .74) 0%, rgba(250, 251, 245, .62) 34%, rgba(250, 251, 245, .18) 62%, transparent 78%),
              linear-gradient(180deg, rgba(250, 251, 245, .8) 0%, rgba(250, 251, 245, 0) 22%, rgba(250, 251, 245, 0) 62%, rgba(238, 241, 228, .92) 94%, var(--bg) 100%); }
.hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; justify-items: start; gap: 22px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; text-wrap: balance; max-width: 13ch; }
.hero .sub { font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 34ch; font-weight: 700; text-wrap: balance; }
.hero-note a { color: var(--link); }
.hero-note { margin-top: 4px; font-size: .88rem; color: var(--muted); max-width: 52ch; background: var(--glass); border-radius: 12px; padding: 6px 10px; }

/* The light glass bar: the watering rule in compact form. */
.livebar { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(43, 36, 28, .12); max-width: 100%; }
.livebar .seg { display: grid; gap: 1px; padding: 4px 16px; text-align: left; border-right: 1px solid var(--line); min-width: 0; }
.livebar .seg:last-of-type { border-right: 0; }
.livebar .k { font: 700 .68rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); white-space: nowrap; }
.livebar .v { font: 800 1.05rem var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.livebar .v .num { font-weight: 800; }
.livebar .btn { margin-left: 4px; }

/* Sections */
section { position: relative; padding: 130px 0; }
.head { display: grid; gap: 16px; margin-bottom: 52px; max-width: 720px; }
.head p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.kicker { font: 800 .82rem var(--body); color: var(--terracotta-text); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(43, 36, 28, .14); border-radius: var(--radius-card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The instrument: the full watering tool with every state. */
.inst { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.board { padding: 26px; display: grid; gap: 18px; align-content: start; }
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.board-top .title { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.field label { display: block; font-weight: 800; font-size: .85rem; margin-bottom: 6px; }
.field select, .field input { width: 100%; font: 600 1rem var(--body); color: var(--bark); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-input); padding: 10px 12px; min-height: 44px; }
.field .help { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.result-box { border-top: 1px solid var(--line); padding-top: 16px; }
.result-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-date { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.result-days { font-weight: 800; color: var(--leaf); }
.result-reason { color: var(--muted); margin-top: 6px; max-width: 58ch; }
.result-hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.weather-bit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .92rem; }
.weather-bit .status { font-weight: 800; }
.weather-bit .status.is-loading { color: var(--muted); }
.weather-bit .status.is-error { color: var(--terracotta-text); }
.weather-bit .retry { min-height: 44px; padding: 0 14px; margin-left: 8px; }
.credit-line { border-top: 1px solid var(--line); padding-top: 12px; font-size: .84rem; color: var(--muted); }
.credit-line a { color: var(--link); }
.inst-side { display: grid; gap: 20px; align-content: start; }
.panel { padding: 22px; display: grid; gap: 14px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.panel h3 .ph { font-size: 1.3rem; color: var(--leaf); }
.panel p { color: var(--muted); font-size: .98rem; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font: 700 .95rem var(--body); font-variant-numeric: tabular-nums; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }

/* Idea cards: asymmetric spans, warm white panels. */
.concepts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.concept { padding: 28px; display: grid; gap: 12px; align-content: start; }
.concept .ico { font-size: 44px; color: var(--leaf); line-height: 1; }
.concept p { color: var(--muted); }
.concept.w7 { grid-column: span 7; } .concept.w5 { grid-column: span 5; }
.concept.w7:first-child { background: linear-gradient(160deg, rgba(242, 201, 76, .3), var(--surface) 55%); }

/* Art band: the sill painting with a glass panel. */
.artband { position: relative; isolation: isolate; overflow: hidden; }
.artband .art { position: absolute; inset: 0; z-index: -2; }
.artband .art img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 42%; }
.artband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(238, 241, 228, .66) 16%, rgba(238, 241, 228, .6) 84%, var(--bg) 100%); }
.artband .head { color: var(--bark); }
.artband .head p { color: var(--muted); }
.bandrow { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 26px; }
.frame-list ul { list-style: none; margin: 0; padding: 6px 18px; display: grid; }
.frame-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 15px 6px; border-bottom: 1px solid var(--line); }
.frame-list li:last-child { border-bottom: 0; }
.frame-list .ph { font-size: 1.5rem; color: var(--leaf); }
.frame-list b { display: block; font-weight: 800; }
.frame-list span { color: var(--muted); font-size: .95rem; }
.phone-slot { display: grid; place-items: center; padding: 18px; }
.phone-frame { background: var(--bark); border-radius: 44px; padding: 12px; width: min(300px, 100%); box-shadow: var(--shadow); flex: none; }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--bg); aspect-ratio: 9 / 19; position: relative; }
.phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.phone-caption { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }
.appband .actions { margin-top: 22px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 1.08rem; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { transition: transform 200ms var(--ease); color: var(--terracotta-text); flex: none; }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq .a { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }
.faq .a a { color: var(--link); }

/* Final band: hero art returns, centred, one CTA. */
.final { min-height: 76svh; display: grid; place-items: center; text-align: center; padding: 140px 24px; }
.final::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(238, 241, 228, .72) 20%, rgba(238, 241, 228, .6) 58%, rgba(238, 241, 228, .88) 88%, var(--bg) 100%); }
.final .inner { display: grid; gap: 20px; justify-items: center; max-width: 760px; }
.final h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); max-width: 14ch; }
.final p { font-size: 1.2rem; max-width: 44ch; text-wrap: balance; font-weight: 700; }
.final .btn { min-height: 52px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.foot > .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 800 .78rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.foot ul a:hover { color: var(--link); }
.foot .small { color: var(--muted); margin-top: 12px; max-width: 42ch; }
.foot a { color: var(--link); }

/* Sunbeam shimmer: one 6% light sweep on load, says "morning". */
.shimmer { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 251, 235, .5) 46%, transparent 60%); transform: translateX(-70%); }
@media (prefers-reduced-motion: no-preference) {
  .shimmer { animation: sweep 1600ms var(--ease) 260ms; }
  @keyframes sweep { to { transform: translateX(70%); } }
}

/* Motion: sections rise on entry; cards lift 2px on hover (Gouache motion list). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
  .concept:hover, .panel:hover { transform: translateY(-2px); transition: transform 200ms var(--ease); }
  .fill-anim { transition: height 300ms var(--ease); }
}

/* Responsive */
@media (max-width: 1100px) {
  .inst { grid-template-columns: 1fr; }
  .concept.w7, .concept.w5 { grid-column: 1 / -1; }
  .bandrow { grid-template-columns: 1fr; }
  section { padding: 104px 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(43, 36, 28, .18); }
  .nav.open .nav-links { display: flex; }
  .only-menu { display: list-item; }
  .nav-right .menu-btn { display: inline-flex; }
  .livebar .hide-sm { display: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding: 118px 16px 96px; align-items: end; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); max-width: 13ch; }
  .livebar { flex-wrap: wrap; justify-content: center; border-radius: 24px; padding: 10px; }
  .livebar .seg { border-right: 0; text-align: center; padding: 4px 12px; }
  .livebar .btn { width: 100%; margin-left: 0; }
  .board { padding: 18px 14px; }
  .concept { padding: 22px; }
  .final .btn { width: 100%; }
  .foot > .wrap { grid-template-columns: 1fr 1fr; }
  .foot > .wrap > div:first-child { grid-column: 1 / -1; }
}
/* PA2: portrait screens get the 9:16 painting; the text sits on the bright glass roof. */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1100px) {
  .hero .art { inset: 0 0 auto; height: 100%; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .hero .art img { object-position: 50% 12%; }
  .hero::after { background: linear-gradient(180deg, rgba(250, 251, 245, .58) 0%, rgba(250, 251, 245, .34) 26%, rgba(250, 251, 245, 0) 48%, rgba(238, 241, 228, .9) 86%, var(--bg) 100%); }
  .hero { padding-bottom: 40px; }
}
@media (max-width: 480px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { width: 44px; padding: 0; }
  .hide-xs { display: none; }
  .foot > .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .shimmer { display: none; }
}
