/* ==========================================================================
   Aequor — shared stylesheet for index.html and plants.html
   Structure follows the in-vitro cup category pattern: white ground, a
   two-tone uppercase display title, round top-down cup imagery, soft cards.
   Colour is Aequor's own: deep sea blue + aqua ("aequor" = the level sea).
   ========================================================================== */

:root {
  color-scheme: light;   /* native controls (selects, scrollbars) follow the theme */
  --ground:       #FFFFFF;
  --mist:         #EEF5F7;
  --card:         #FFFFFF;
  --ink:          #0C2E45;
  --aqua:         #1B8FA6;   /* large display text only (3.8:1) */
  --aqua-deep:    #147486;   /* links, buttons, small accent text (5.4:1) */
  --aqua-hover:   #0E5E6D;
  --on-aqua:      #FFFFFF;
  --text:         #3A5668;
  --muted:        #587685;
  --line:         #D7E4EA;
  --line-strong:  #AFC6D0;

  --band:         #0C2E45;
  --band-ink:     #FFFFFF;
  --band-text:    #BCD3DD;
  --band-aqua:    #6ACFE1;
  --band-line:    rgba(255, 255, 255, .16);

  --easy:         #2E7340;
  --easy-soft:    #E2F1E5;
  --medium:       #8A5A12;
  --medium-soft:  #FBEFD9;
  --pilot:        #6A4A98;
  --pilot-soft:   #EFE9F7;

  --shadow:       0 1px 2px rgba(12, 46, 69, .06), 0 10px 26px -14px rgba(12, 46, 69, .28);
  --shadow-hover: 0 2px 4px rgba(12, 46, 69, .08), 0 20px 40px -16px rgba(12, 46, 69, .38);
  --backdrop:     rgba(6, 24, 36, .56);

  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body:    "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground:       #07161F;
    --mist:         #0C2230;
    --card:         #0F2939;
    --ink:          #E8F2F6;
    --aqua:         #5CC6DA;
    --aqua-deep:    #5CC6DA;
    --aqua-hover:   #8ADAE8;
    --on-aqua:      #05202C;
    --text:         #A9C2CD;
    --muted:        #86A1AD;
    --line:         #1C3A4B;
    --line-strong:  #2F5366;

    --band:         #0F3A52;
    --band-ink:     #FFFFFF;
    --band-text:    #BCD3DD;
    --band-aqua:    #7AD6E6;
    --band-line:    rgba(255, 255, 255, .14);

    --easy:         #86D6A0;
    --easy-soft:    #123321;
    --medium:       #E9B46A;
    --medium-soft:  #362611;
    --pilot:        #BFA3E6;
    --pilot-soft:   #291E3B;

    --shadow:       0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -14px rgba(0, 0, 0, .75);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 44px -16px rgba(0, 0, 0, .85);
    --backdrop:     rgba(1, 8, 12, .7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground:       #07161F;
  --mist:         #0C2230;
  --card:         #0F2939;
  --ink:          #E8F2F6;
  --aqua:         #5CC6DA;
  --aqua-deep:    #5CC6DA;
  --aqua-hover:   #8ADAE8;
  --on-aqua:      #05202C;
  --text:         #A9C2CD;
  --muted:        #86A1AD;
  --line:         #1C3A4B;
  --line-strong:  #2F5366;

  --band:         #0F3A52;
  --band-ink:     #FFFFFF;
  --band-text:    #BCD3DD;
  --band-aqua:    #7AD6E6;
  --band-line:    rgba(255, 255, 255, .14);

  --easy:         #86D6A0;
  --easy-soft:    #123321;
  --medium:       #E9B46A;
  --medium-soft:  #362611;
  --pilot:        #BFA3E6;
  --pilot-soft:   #291E3B;

  --shadow:       0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -14px rgba(0, 0, 0, .75);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 44px -16px rgba(0, 0, 0, .85);
  --backdrop:     rgba(1, 8, 12, .7);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0; }
a { color: var(--aqua-deep); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
figure { margin: 0; }

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--aqua-deep);
  color: var(--on-aqua);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.kicker {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

/* ---------- two-tone title ---------- */

.title { font-size: clamp(28px, 3.6vw, 42px); }
.title span { display: block; }
.title__b { color: var(--aqua); }

.title--xl { font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: .004em; }
.title--lg { font-size: clamp(34px, 4.8vw, 58px); line-height: 1; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 14px 22px;
  border: 2px solid var(--aqua-deep);
  border-radius: 4px;
  background: var(--aqua-deep);
  color: var(--on-aqua);
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { background: var(--aqua-hover); border-color: var(--aqua-hover); }

.btn--outline { background: transparent; color: var(--aqua-deep); }
.btn--outline:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); color: var(--on-aqua); }

.btn--sm { padding: 9px 14px; font-size: 12px; }
.btn--block { width: 100%; }

.btn--light { background: var(--band-aqua); border-color: var(--band-aqua); color: #05202C; }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--aqua-deep);
  margin-right: auto;
}

.brand__mark { flex: none; }

.brand__name {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--ink);
}

.brand__sub {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--aqua); }

.head-tools { display: flex; align-items: center; gap: 18px; }

.langs {
  display: flex;
  gap: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}
.langs button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px;   /* 24x24 is the WCAG floor */
  background: none; border: 0; padding: 4px 6px;
  color: var(--muted); cursor: pointer;
}
.langs button[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- light / dark toggle ---------- */

.theme-btn {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.theme-btn:hover { border-color: var(--aqua-deep); color: var(--aqua-deep); }

/* Moon while light (offers dark), sun while dark (offers light). */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun  { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* No script, no data-theme, no working toggle: hide it and let the device decide. */
:root:not([data-theme]) .theme-btn { display: none; }

/* Brief cross-fade while switching, added and removed by aequor.js. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1000px) {
  .site-head__in { gap: 16px; }
  .head-tools { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .head-tools .btn { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 16px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ---------- round top-down cup ---------- */

.cupshot { aspect-ratio: 1; width: 100%; max-width: 100%; }
.cupshot svg, .cupshot img { display: block; width: 100%; height: 100%; }
.cupshot img { object-fit: cover; border-radius: 50%; }
.cupshot svg { filter: drop-shadow(0 12px 22px rgba(12, 46, 69, .18)); overflow: visible; }

/* ---------- hero ---------- */

/* Copy is anchored hard against the left edge rather than the centred .wrap. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(44px, 7vw, 96px);
  padding-right: clamp(20px, 4vw, 64px);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding-left: clamp(20px, 2.6vw, 40px);
}

.hero__line {
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
/* Each sentence stays whole so a break only lands between sentences. */
.hero__line span { white-space: nowrap; }

.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__visual { display: grid; place-items: center; }
.cupshot--hero { width: min(100%, 500px); }

/* Keep "plus a friend." as one phrase wherever the two-column hero applies. */
@media (min-width: 861px) {
  .hero .title__b { white-space: nowrap; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-right: 0; }
  .hero__visual { padding-inline: 20px; }
  .cupshot--hero { width: min(76vw, 360px); }
}

/* ---------- bands & section heads ---------- */

.band { padding-block: clamp(60px, 8vw, 104px); }
.band--mist { background: var(--mist); }

.band--ink { background: var(--band); color: var(--band-text); }
.band--ink h2, .band--ink h3 { color: var(--band-ink); }
.band--ink .title__b { color: var(--band-aqua); }
.band--ink p { color: var(--band-text); }
.band--ink .kicker { color: var(--band-aqua); }

.sec-head {
  display: grid;
  gap: 16px;
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 58px);
}
.sec-head > p:not(.kicker) { font-size: 17px; }

/* ---------- five promises ---------- */

.promises {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px) 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.promises__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
}

/* Second column continues the count across the picture. */
.promises__col--a { counter-reset: promise 0; }
.promises__col--b { counter-reset: promise 3; }

.promises__col li {
  counter-increment: promise;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}

.promises__col li::before {
  content: counter(promise);
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua-deep);
  border-radius: 50%;
  background: var(--ground);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--aqua-deep);
}

.promises__col h3 { grid-column: 2; font-size: 18px; line-height: 1.2; letter-spacing: .03em; padding-top: 2px; }
.promises__col p  { grid-column: 2; font-size: 16px; }

.promises__fig { display: grid; place-items: center; align-self: center; }

@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr; gap: 34px; }
  .promises__fig { order: -1; width: min(280px, 70vw); margin-inline: auto; }
}

/* ---------- "want to learn more" ---------- */

.learn {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(44px, 6vw, 66px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.learn__img { width: 78px; flex: none; }
.learn__q { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.learn__a { font-style: italic; }

.learn--inline { margin-top: 6px; padding-top: 0; border-top: 0; }

/* ---------- how we grow ---------- */

.grow {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.grow__copy { display: grid; gap: 16px; max-width: 56ch; }
.grow__copy > p:not(.kicker) { font-size: 16.5px; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.steps li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 6px 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps__when {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  padding-top: 3px;
}

.steps h3 { font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.steps p { font-size: 15.5px; margin-top: 5px; }

@media (max-width: 860px) { .grow { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps li { grid-template-columns: 1fr; } }

/* ---------- trade ---------- */

.trade {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.trade__copy { display: grid; gap: 18px; max-width: 56ch; }
.trade__copy > p:not(.kicker) { font-size: 17px; }

.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--band-text); }
.ticks svg { margin-top: 3px; color: var(--band-aqua); }

.contact {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--band-line);
  border-radius: 6px;
  padding: 26px 26px 28px;
  display: grid;
  gap: 20px;
}

.contact h3 { font-size: 20px; }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dl div { padding-bottom: 13px; border-bottom: 1px solid var(--band-line); }
.contact dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact dt { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--band-aqua); }
.contact dd { margin: 3px 0 0; font-size: 16px; font-weight: 700; color: var(--band-ink); word-break: break-word; }
.contact dd a { color: inherit; text-decoration: none; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) { .trade { grid-template-columns: 1fr; } }

/* ---------- guide / faq ---------- */

.faq { max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua-deep);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--aqua-deep);
  transition: transform .2s, background-color .2s, color .2s;
}
.faq summary:hover::after { background: var(--aqua-deep); color: var(--on-aqua); }
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 52px 22px 0; max-width: 72ch; }

/* ---------- plants page ---------- */

.shop {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(36px, 5vw, 64px) clamp(60px, 8vw, 100px);
  align-items: start;
}

.side { position: sticky; top: 104px; display: grid; gap: 18px; }

.side__title { font-size: 30px; padding-bottom: 14px; border-bottom: 2px solid var(--aqua-deep); }

.side__nav {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  display: grid;
  border-bottom: 2px solid var(--aqua-deep);
}
.side__nav a { display: block; padding: 7px 0; font-size: 15.5px; text-decoration: none; color: var(--aqua-deep); }
.side__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.side__nav a[aria-current="true"] { color: var(--ink); font-weight: 700; }

.side__body { display: grid; gap: 18px; }
.side__toggle { display: none; }

.finder { display: grid; gap: 10px; }

.field {
  width: 100%;
  font-size: 15px;
  color: var(--ink);
  background-color: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  padding: 11px 12px;
}
.field::placeholder { color: var(--muted); opacity: 1; }

select.field {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23587685' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.finder__gap { height: 6px; }

.side__count { font-size: 14px; color: var(--muted); }

.shop__intro { display: grid; gap: 18px; max-width: 70ch; margin-bottom: clamp(30px, 4vw, 44px); }
.shop__intro > p { font-size: 17px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--card);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.cup:hover, .cup:focus-within { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cup[hidden] { display: none; }

.cup .cupshot { width: 84%; margin: 2px auto 14px; }

.cup__name { font-size: 15.5px; line-height: 1.18; letter-spacing: .03em; color: var(--aqua-deep); }
.cup__desc { font-size: 14.5px; line-height: 1.45; }
.cup__type { font-size: 14px; color: var(--muted); }
.sku { font-family: var(--mono); font-size: 12px; margin-left: 4px; }

.cup__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 3px;
}
.chip--easy   { background: var(--easy-soft);   color: var(--easy); }
.chip--medium { background: var(--medium-soft); color: var(--medium); }
.chip--pilot  { background: var(--pilot-soft);  color: var(--pilot); }

.cup__more {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua-deep);
  border-radius: 4px;
  background: transparent;
  color: var(--aqua-deep);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
/* The one button covers the whole card, so the entire card opens the sheet. */
.cup__more::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.cup:hover .cup__more { background: var(--aqua-deep); color: var(--on-aqua); }

.empty { padding: 40px 0; font-size: 17px; }
.empty[hidden] { display: none; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--aqua-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .side { position: static; gap: 14px; }

  .side__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    border: 2px solid var(--aqua-deep);
    border-radius: 4px;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--aqua-deep);
  }
  .side__toggle::-webkit-details-marker { display: none; }
  .side__toggle::after { content: "+"; font-size: 22px; line-height: 1; }
  .side__filters[open] .side__toggle::after { content: "\2013"; }
  .side__filters[open] .side__body { margin-top: 18px; }
}

/* ---------- plant sheet (dialog) ---------- */

.sheet {
  width: min(940px, 100% - 32px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px -24px rgba(4, 20, 32, .55);
  overflow: auto;
}
.sheet::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }

.sheet__in { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

.sheet__media { display: grid; place-items: center; padding: clamp(28px, 4vw, 52px); background: var(--mist); }

.sheet__body { display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3.5vw, 42px); }

.sheet__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua-deep);
  border-radius: 4px;
  background: var(--card);
  color: var(--aqua-deep);
  cursor: pointer;
}
.sheet__close:hover { background: var(--aqua-deep); color: var(--on-aqua); }

.sheet__name { font-size: clamp(26px, 3vw, 36px); padding-right: 48px; }
.sheet__desc { font-size: 17px; }
.sheet__h { font-size: 15px; letter-spacing: .12em; margin-top: 10px; }

.pts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.pts li { position: relative; padding-left: 20px; }
.pts li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 26px;
  border-top: 2px solid var(--ink);
}
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); }

.lab { display: grid; gap: 4px; margin-top: 4px; padding: 13px 15px; border-radius: 4px; background: var(--mist); }
.lab__h { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua-deep); }
.lab p:not(.lab__h) { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink); }

@media (max-width: 720px) {
  .sheet__in { grid-template-columns: 1fr; }
  .sheet__media { padding: 28px 18%; }
  .spec { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-foot { background: var(--mist); border-top: 1px solid var(--line); padding-block: 58px 30px; font-size: 15px; }

.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }

.foot__brand .brand { margin-right: 0; }
.foot__brand p { margin-top: 16px; max-width: 32ch; font-weight: 600; color: var(--ink); }

.foot h4 { font-size: 13px; letter-spacing: .16em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { display: inline-block; padding-block: 4px; color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--aqua-deep); text-decoration: underline; text-underline-offset: 3px; }
.foot address { margin-top: 16px; font-style: normal; line-height: 1.7; }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */

@keyframes rise   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.94) rotate(-8deg); } to { opacity: 1; transform: none; } }

.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .18s; }
.hero__copy > :nth-child(4) { animation-delay: .28s; }
.cupshot--hero { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }

.sheet[open] { animation: rise .28s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cup:hover, .cup:focus-within { transform: none; }
}
