/* ShigotoDays site styles.
   Fresh Mint identity on a light, airy page: deep green hero and
   footer bands, white cards, mint accents. One file, self-hosted
   fonts, no external requests. */

/* ---------- Fonts (self-hosted) ---------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Brand: Fresh Mint greens */
  --green-950: #052e21;
  --green-deep: #0a4a38;
  --green: #0e6e50;
  --green-bright: #128a63;
  --mint: #57c48d;
  --mint-soft: #dff3e7;
  /* mint-soft deepened one step toward mint: the pressed wash on
     the light pills, strong enough to read clearly under a thumb. */
  --mint-press: #b6e5cc;
  --mint-pale: #eef7f1;

  /* Light surfaces and ink */
  --paper: #f6f9f7;
  --paper-2: #eef4f0;
  --card: #ffffff;
  --ink: #12291f;
  --ink-soft: #4d6357;
  --ink-faint: #71857a;
  --line: #dcebe2;
  --line-soft: #e7f0ea;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 34px;

  /* Layered soft shadows, green-tinted */
  --shadow-xs: 0 1px 2px rgba(10, 74, 56, 0.05);
  --shadow-sm: 0 2px 6px rgba(10, 74, 56, 0.05), 0 10px 24px rgba(10, 74, 56, 0.05);
  --shadow-md: 0 4px 10px rgba(10, 74, 56, 0.05), 0 20px 44px rgba(10, 74, 56, 0.09);
  --shadow-lg: 0 8px 18px rgba(10, 74, 56, 0.06), 0 34px 70px rgba(10, 74, 56, 0.13);
  --shadow-phone: 0 2px 6px rgba(2, 24, 16, 0.28), 0 24px 48px rgba(2, 24, 16, 0.30),
    0 52px 110px rgba(2, 24, 16, 0.30);

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  /* Spring for press feedback: overshoots a touch past the resting
     value, then settles, like the app's bottom navigation bar. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--mint-soft);
  color: var(--green-deep);
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 800px;
}

/* ---------- Top bar: sticky glass ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 249, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(220, 235, 226, 0.85);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-head.scrolled {
  box-shadow: 0 10px 34px rgba(10, 74, 56, 0.10);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
}

.site-head .mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
  /* The brand is a pill like the nav links beside it, with a radius
     of its own, so its press wash rounds with it instead of flashing
     a sharp-cornered rectangle. The side padding gives the wash room
     to read as a pill around the icon and wordmark; the equal
     negative left margin puts the icon back exactly where it stood,
     and the auto right margin absorbs the wider box, so nothing in
     the header shifts. */
  border-radius: 999px;
  padding: 0 10px;
  margin-left: -10px;
  transition: background 0.18s ease;
}

/* Brand tiles (here, the footer, and the page eyebrows) clip the
   icon with a radius of 30% of the tile's own size, the app icon's
   rounded feel: a percentage, so the rounding scales with the tile
   at every breakpoint instead of shrinking to a near-square notch
   on the small phone tile. The radius clips the image itself. */

.site-head .mark img {
  width: 38px;
  height: 38px;
  border-radius: 30%;
  box-shadow: var(--shadow-xs);
}

.site-head .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.site-head nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-head nav a:hover {
  color: var(--green-deep);
  background: var(--mint-pale);
}

.site-head nav a.cta {
  background: var(--green-deep);
  color: #ffffff;
  font-weight: 600;
  padding: 0 18px;
  margin-left: 6px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.site-head nav a.cta:hover {
  background: var(--green);
  color: #ffffff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 12% -6%, rgba(87, 196, 141, 0.34), rgba(87, 196, 141, 0) 62%),
    radial-gradient(820px 500px at 88% -10%, rgba(133, 232, 173, 0.20), rgba(133, 232, 173, 0) 60%),
    linear-gradient(168deg, #0d7a52 0%, var(--green) 42%, var(--green-deep) 78%, #073d2b 100%);
  padding: clamp(64px, 9vw, 104px) 0 0;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--mint-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero .eyebrow img {
  width: 26px;
  height: 26px;
  border-radius: 30%;
}

.hero .eyebrow .heart {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

.hero h1 {
  font-family: var(--font-display);
  margin: 30px auto 0;
  max-width: 840px;
  font-size: clamp(40px, 7.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}

.hero .subhead {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: clamp(18px, 2.4vw, 21.5px);
  line-height: 1.55;
  color: var(--mint-soft);
  text-wrap: balance;
}

.hero .play-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  max-width: 92%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
}

.hero .play-note .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(87, 196, 141, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-light {
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: 0 12px 28px rgba(3, 30, 20, 0.28);
}

.btn-light:hover {
  background: var(--mint-pale);
  color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(3, 30, 20, 0.30);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------- Phone showcase ---------- */

.showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(44px, 6vw, 68px);
  padding: 0 8px;
}

.phone {
  position: relative;
  flex: none;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(180deg, #123528, #081f16);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.10);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 37px;
}

.phone-main {
  z-index: 3;
  width: min(308px, 58vw);
  aspect-ratio: 720 / 1250;
}

.phone-side {
  z-index: 2;
  width: min(262px, 46vw);
  aspect-ratio: 720 / 1180;
  margin-bottom: 26px;
  opacity: 0.98;
}

.phone-left {
  transform: rotate(-4.5deg);
  margin-right: -34px;
}

.phone-right {
  transform: rotate(4.5deg);
  margin-left: -34px;
}

.hero .showcase {
  margin-bottom: -84px;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-md);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.float-chip svg {
  flex: none;
  color: var(--green-bright);
}

.float-chip-a {
  left: calc(50% - 348px);
  bottom: 218px;
  transform: rotate(-3deg);
}

.float-chip-b {
  right: calc(50% - 352px);
  bottom: 330px;
  transform: rotate(2.5deg);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(76px, 10vw, 118px) 0 12px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--green);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
}

.section-head h2,
.split h2,
.band h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(31px, 4.6vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.section-head .sub,
.split .sub {
  margin: 18px 0 0;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px auto 4px;
  max-width: 780px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-deep);
  box-shadow: var(--shadow-xs);
}

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 30px 28px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint-soft);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--mint-pale), var(--mint-soft));
  color: var(--green-deep);
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 9px;
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.8px;
  line-height: 1.62;
}

/* Split showcase */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.split .kicker {
  margin-bottom: 14px;
}

.split .phone {
  margin: 0 auto;
  width: min(320px, 80vw);
  aspect-ratio: 720 / 980;
  transform: rotate(2deg);
}

.split-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.split-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.55;
}

.split-points .tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--green-deep);
}

/* Point list standing on its own, without a phone beside it */
.points-narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Themes strip */

.themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 10px;
  margin-top: 46px;
}

.theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 6px 14px;
  border-radius: var(--r-lg);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.theme:hover {
  background: var(--card);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.theme .dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(18, 41, 31, 0.10), var(--shadow-xs);
}

.theme .tname {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}

/* Trust band */

.band {
  border-radius: var(--r-2xl);
  padding: clamp(38px, 5.5vw, 58px) clamp(26px, 5vw, 56px) clamp(30px, 4.5vw, 46px);
  background:
    radial-gradient(560px 300px at 8% 0%, rgba(87, 196, 141, 0.16), rgba(87, 196, 141, 0) 60%),
    linear-gradient(160deg, #ffffff, var(--mint-pale));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.band .band-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.band h2 {
  font-size: clamp(27px, 3.8vw, 38px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  margin-top: 42px;
}

.trust-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  color: var(--green-deep);
  margin-bottom: 14px;
}

.trust-item h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.trust-item p {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* Contact */

.contact-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 280px at 90% -10%, rgba(87, 196, 141, 0.35), rgba(87, 196, 141, 0) 60%),
    linear-gradient(155deg, var(--green-bright), var(--green) 55%, var(--green-deep));
  border-radius: var(--r-2xl);
  padding: clamp(44px, 6vw, 64px) clamp(26px, 5vw, 56px);
  margin-top: clamp(76px, 10vw, 118px);
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.contact-band h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.026em;
  font-weight: 800;
}

.contact-band p {
  margin: 16px auto 26px;
  max-width: 540px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--mint-soft);
}

.contact-band p a {
  color: #ffffff;
  font-weight: 600;
}

.contact-band .btn-light {
  box-shadow: 0 14px 30px rgba(3, 30, 20, 0.35);
}

/* ---------- Text pages (privacy, delete your data) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 88px) 0 clamp(30px, 4vw, 44px);
  text-align: center;
  background:
    radial-gradient(640px 300px at 50% -30%, rgba(87, 196, 141, 0.20), rgba(87, 196, 141, 0) 65%),
    var(--paper);
}

.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 15px 6px 7px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.page-head .eyebrow img {
  width: 24px;
  height: 24px;
  border-radius: 30%;
}

.page-head h1 {
  font-family: var(--font-display);
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.page-head .meta {
  margin-top: 18px;
}

main.text-page {
  padding: 12px 0 8px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5.5vw, 56px) clamp(20px, 3.5vw, 34px);
  box-shadow: var(--shadow-sm);
  font-size: 16.5px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 21.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--ink);
}

.panel h2:first-of-type {
  margin-top: 30px;
}

.panel > p:first-child {
  font-size: 17.5px;
}

.panel p {
  margin: 0 0 16px;
  color: #2c4438;
}

.panel ul,
.panel ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #2c4438;
}

.panel li {
  margin-bottom: 9px;
}

.panel li::marker {
  color: var(--mint);
  font-weight: 700;
}

.panel a {
  font-weight: 500;
}

.meta {
  color: var(--ink-faint);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Releases page ---------- */

.release-list {
  display: grid;
  gap: 22px;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.release-head h2 {
  margin: 0;
}

.latest-pill {
  background: var(--green-deep);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  flex: none;
  white-space: nowrap;
}

.release-entry .meta {
  margin: 10px 0 0;
}

.release-entry .wn {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  margin: 24px 0 10px;
}

.release-entry ul {
  margin-bottom: 8px;
}

/* Older releases fold into details rows: the title and date stay
   visible and the What's new list opens on tap, so the page stays
   short as releases pile up. The latest release stays a plain,
   always-open card with no summary at all. */

/* A folded entry is a compact row, not a full panel: tight vertical
   padding, and the heading keeps the zero margin the release head
   asks for (the text-page rule for a panel's first heading would
   otherwise leak 30px of head space into the row). Opening the
   entry restores the panel's roomier padding. */

details.release-entry {
  padding-top: 20px;
  padding-bottom: 20px;
}

details.release-entry[open] {
  padding-top: clamp(32px, 5vw, 52px);
  padding-bottom: clamp(20px, 3.5vw, 34px);
}

details.release-entry .release-head h2 {
  margin: 0;
}

/* The latest card's head is one line at every width: the title on
   the left, the Latest badge on the right, centred on the title.
   The head never wraps, and the heading keeps the same zero margin
   as the folded rows (the panel's first-heading rule would
   otherwise drop the title 30px and leave the badge floating on a
   row of its own). */

article.release-entry .release-head {
  flex-wrap: nowrap;
}

article.release-entry .release-head h2 {
  margin: 0;
}

.release-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.release-summary::-webkit-details-marker {
  display: none;
}

.release-summary::marker {
  content: "";
}

.release-summary:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 5px;
  border-radius: 6px;
}

.release-sum-main {
  flex: 1;
  min-width: 0;
}

.release-sum-main .meta {
  display: block;
}

.release-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  /* The chip centres on the title line (about 28px), not on the
     taller title-plus-date block beside it. */
  margin-top: -5px;
  border-radius: 999px;
  background: var(--mint-pale);
  border: 1px solid var(--line-soft);
  color: var(--green-deep);
  transition: background 0.25s var(--ease-out);
}

.release-summary:hover .release-chev {
  background: var(--mint-soft);
}

/* The arrow is a real SVG chevron, not a rotated border square: it
   flips a clean 180 degrees between down and up, so mid-motion it
   reads as a sideways chevron, never as an X. */

.release-chev svg {
  display: block;
  transition: transform 0.2s ease;
}

details.release-entry[open] .release-chev svg {
  transform: rotate(180deg);
}

/* ---------- Footer: deep green band ---------- */

.site-foot {
  margin-top: clamp(76px, 10vw, 118px);
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(87, 196, 141, 0.22), rgba(87, 196, 141, 0) 60%),
    linear-gradient(180deg, var(--green-deep), var(--green-950));
  color: var(--mint-soft);
  padding: 54px 0 44px;
}

.site-foot .foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
}

.site-foot .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.site-foot .foot-brand img {
  width: 42px;
  height: 42px;
  border-radius: 30%;
}

.site-foot .foot-brand .fname {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.site-foot .foot-brand .fsub {
  font-size: 13.5px;
  color: var(--mint-soft);
  opacity: 0.85;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 10px;
}

.site-foot nav a {
  color: var(--mint-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-foot nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-foot .foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  align-items: baseline;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.site-foot .foot-base .fine {
  opacity: 0.75;
}

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .cards .card:nth-child(2),
.js .trust-grid .trust-item:nth-child(2) {
  transition-delay: 0.07s;
}

.js .cards .card:nth-child(3),
.js .trust-grid .trust-item:nth-child(3) {
  transition-delay: 0.14s;
}

.js .cards .card:nth-child(4),
.js .trust-grid .trust-item:nth-child(4) {
  transition-delay: 0.21s;
}

.js .cards .card:nth-child(5) {
  transition-delay: 0.28s;
}

.js .cards .card:nth-child(6) {
  transition-delay: 0.35s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .float-chip-a {
    left: calc(50% - 308px);
  }

  .float-chip-b {
    right: calc(50% - 312px);
  }
}

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

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .themes-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split .kicker {
    justify-content: center;
  }

  .split .sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
  }

  .split-points {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .split .phone {
    transform: none;
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .wrap {
    padding: 0 20px;
  }

  .site-head .wrap {
    min-height: 60px;
    gap: 8px;
  }

  .site-head .mark img {
    width: 34px;
    height: 34px;
  }

  .site-head .brand {
    font-size: 17.5px;
  }

  .site-head nav {
    gap: 2px;
  }

  .site-head nav a {
    padding: 0 10px;
    font-size: 14px;
  }

  .site-head nav a.optional {
    display: none;
  }

  .site-head nav a.cta {
    padding: 0 14px;
    margin-left: 4px;
  }

  .hero h1 {
    letter-spacing: -0.026em;
  }

  .showcase {
    padding: 0;
  }

  .phone {
    border-radius: 34px;
    padding: 7px;
  }

  .phone img {
    border-radius: 28px;
  }

  .phone-main {
    width: min(252px, 56vw);
  }

  .phone-side {
    width: min(216px, 47vw);
    margin-bottom: 18px;
  }

  .phone-left {
    margin-right: -26px;
  }

  .phone-right {
    display: none;
  }

  .hero .showcase {
    margin-bottom: -64px;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .card {
    padding: 26px 24px 12px;
  }

  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
  }

  .theme {
    padding: 14px 2px 10px;
  }

  .theme .dot {
    width: 40px;
    height: 40px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-foot .foot-base .fine {
    margin-left: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Press feel (borrowed from the app's bottom nav) ----------
   In the app, a pressed nav button swells a touch in about 110ms and
   then springs home with a soft overshoot. The site's real controls
   copy that feel: a quick ease-out swell while the finger is down,
   then a 230ms spring back that overshoots a hair past rest before
   settling. Plain text links and body copy never move. The rules sit
   at the end of the file so the press wins over the hover lifts
   while a press is live; on release the hover state returns through
   the same spring. */

.btn {
  transition: transform 0.23s var(--ease-spring), box-shadow 0.2s var(--ease-out),
    background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(1.05);
  transition: transform 0.11s ease-out, box-shadow 0.2s var(--ease-out),
    background 0.2s ease, color 0.2s ease;
}

.site-head nav a.cta {
  transition: background 0.18s ease, transform 0.23s var(--ease-spring);
}

.site-head nav a.cta:active {
  transform: scale(1.05);
  transition: background 0.18s ease, transform 0.11s ease-out;
}

/* A release row never transforms: a scale on the summary while the
   details toggles made the title and date ghost mid-click. The row
   answers with its pressed tint alone (further down), and the
   chevron chip carries the app's fuller 1.13 swell instead. The
   chip's transform lives on the chip itself, so it never fights the
   arrow's own rotate transition inside it. */

.release-summary {
  transition: background 0.15s ease;
}

.release-chev {
  transition: background 0.25s var(--ease-out), transform 0.23s var(--ease-spring);
}

.release-summary:active .release-chev {
  transform: scale(1.13);
  transition-duration: 0.25s, 0.11s;
  transition-timing-function: var(--ease-out), ease-out;
}

/* Reduced motion: no press movement at all (the global rule above
   already flattens the transitions; this removes the swell itself). */

@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .site-head nav a.cta:active,
  .release-summary:active .release-chev {
    transform: none;
  }
}

/* ---------- Touch highlight: the app's green, the element's own corners ----------
   A tap flashes the browser's own highlight before any :active style
   lands: a blue grey rectangle with sharp corners that ignores the
   control's shape and covers the press feel above. So the browser
   highlight is recoloured site-wide to a soft wash of the deep green
   token (a text link or anything else tapped answers in the app's
   colour, never blue), and the real controls switch it off entirely:
   their press feedback is their own background tint, painted by the
   element itself, so it follows the element's own border radius
   exactly, pill round on the pills and card round on the rows. */

* {
  -webkit-tap-highlight-color: rgba(10, 74, 56, 0.20);
}

.btn,
.site-head nav a,
.site-head .mark,
.release-summary {
  -webkit-tap-highlight-color: transparent;
}

/* Pressed tints: one step deeper than each control's hover wash. */

.site-head nav a:active {
  background: var(--mint-press);
}

.site-head .mark:active {
  background: var(--mint-press);
}

.site-head nav a.cta:active {
  background: var(--green-bright);
}

.btn-light:active {
  background: var(--mint-press);
}

.btn-ghost:active {
  background: rgba(87, 196, 141, 0.30);
}

/* A release row answers a press with a soft deep green wash that
   lives on the summary itself and is rounded with it. The card clips
   at its own radius, so the wash can never show a sharp corner or
   spill past the card, folded or open. */

.release-summary {
  border-radius: var(--r-lg);
}

.release-summary:active {
  background: rgba(10, 74, 56, 0.12);
}

details.release-entry {
  overflow: hidden;
}

/* ---------- Scroll-linked split phones (trial, 2026-11-17) ----------
   The Map and Calendar split phones' screenshots are driven by the
   page scroll: as a frame crosses the viewport, site.js moves the
   image inside it from its top (object-position 0%) to its bottom
   (100%), exactly at the visitor's scroll speed, in both
   directions, and standing still when the page does. With
   JavaScript off, or for reduced motion, the screenshots simply
   rest at the top (the base .phone img rule already sets
   object-position: top center, and site.js never touches them).
   TO REVERT THE TRIAL in one edit: delete this whole CSS block,
   delete the matching "Scroll-linked split phones" block in
   site.js, and take the "pan" and "pan-cal" classes off the two
   split phone divs in index.html. Nothing else depends on any of
   it. */

/* The calendar screenshot's week rows run at a 104px pitch and the
   last row (days 26 to 31) ends at image y 1019 of 1570, with the
   legend starting at y 1045. The shared 720/980 frame shows about
   997 image px at rest, so its bottom edge sliced that last row.
   At 720/1011 the resting view shows about 1024 to 1030 image px
   across widths and ends in the clean gap below the grid. */

.split .phone.pan-cal {
  aspect-ratio: 720 / 1011;
}
