/* ==========================================================================
   Bokkiyaw — v2 visual layer
   Loaded after style.css / family.css / demo.css.
   Refines typography, rhythm, surfaces and components; introduces the
   dark brand band that matches the product artwork.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --white: #ffffff;
  --ink: #0a1f19;
  --ink-soft: #16302a;
  --forest: #0b2e25;
  --forest-deep: #07231c;
  --muted: #5b6d65;
  --mint: #00c2a0;
  --mint-dark: #00795f;
  --mint-bright: #46e3c1;
  --pale: #f2fbf7;
  --line: #e1ece7;
  --line-strong: #cbdcd5;
  --gray: #f7faf9;

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 25, 0.05);
  --shadow-md: 0 26px 60px -34px rgba(10, 31, 25, 0.38);
  --shadow-lg: 0 46px 100px -46px rgba(10, 31, 25, 0.5);

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
html {
  background: var(--white);
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient mint wash behind the top of every page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(940px, 88vh);
  background: radial-gradient(
    56% 60% at 78% 2%,
    rgba(0, 194, 160, 0.13),
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: #b6f2e2;
  color: var(--forest-deep);
}

.wrap {
  width: min(1200px, calc(100% - 80px));
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.032em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.034em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 1em;
}

/* Editorial accent: a single serif-italic word per headline. */
h1 em,
h2 em,
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  padding-right: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--mint-dark);
  margin: 0 0 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--mint-dark);
  border-bottom: 0;
  line-height: 1.6;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.inline-link::after {
  content: "\2192";
  font-size: 0.95em;
  transition: transform 0.3s var(--ease);
}

.inline-link:hover {
  color: var(--forest);
}

.inline-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  margin: 0;
  height: var(--header-h);
  min-height: var(--header-h);
  padding-inline: max(40px, calc((100% - 1200px) / 2));
  gap: 24px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 31, 25, 0.07);
}

.brand {
  font-size: 1.26rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  gap: 0.55rem;
}

.brand .mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
}

.mark-tile {
  fill: var(--mark-tile, #0b2e25);
}

.mark-stem,
.mark-bowl {
  fill: var(--mark-glyph, #00c2a0);
}

.mark-counter {
  fill: var(--mark-tile, #0b2e25);
}

.site-header nav {
  gap: clamp(14px, 2.1vw, 30px);
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.site-header nav > a,
.products-menu summary {
  position: relative;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}

.site-header nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.site-header nav > a:hover::after,
.site-header nav > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-contact {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 20px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.nav-contact:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.nav-contact::after {
  display: none;
}

.product-menu-links {
  border-radius: var(--r);
  padding: 10px;
  box-shadow: 0 24px 50px -24px rgba(10, 31, 25, 0.35);
  border-color: var(--line);
}

.product-menu-links a {
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  letter-spacing: 0;
  font-weight: 500;
}

.product-menu-links a:hover {
  background: var(--pale);
}

/* ---------- 5. Buttons & badges ---------- */
.button {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
    color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.button-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(11, 46, 37, 0.75);
}

.button-primary:hover {
  background: var(--mint);
  color: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px rgba(0, 194, 160, 0.6);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.status-badge {
  border: 1px solid var(--line-strong);
  background: var(--pale);
  color: #1a5a47;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge.available {
  background: #ddf7ec;
  border-color: #a9dcc6;
  color: #1b5341;
}

.status-badge.review {
  background: #fff7e6;
  border-color: #e8d7ae;
  color: #6d5518;
}

/* ---------- 6. Hero ---------- */
.studio-hero {
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(3rem, 5.4vw, 5.25rem) 0 clamp(3.5rem, 6vw, 6rem);
  align-items: center;
}

.studio-hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 0.99;
  letter-spacing: -0.046em;
  margin: 0 0 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.flagship-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mint-dark);
  margin: 0;
}

.studio-hero .hero-description {
  font-size: 1.13rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 33rem;
  margin: 0 0 1.9rem;
}

.studio-hero .hero-actions {
  gap: 0.75rem;
  margin: 0;
}

.hero-demo-button {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mint-dark);
  gap: 0.5rem;
}

.hero-demo-button:hover {
  color: var(--forest);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1.35rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}

.hero-visual {
  background: linear-gradient(158deg, #eefaf5 0%, #ffffff 62%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.15rem 1.15rem 0.4rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-visual .visual-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.15rem 0.3rem 0;
  margin-bottom: 0.9rem;
}

.hero-visual .visual-label span:first-child {
  color: var(--ink);
}

.hero-visual img {
  border-radius: 14px;
}

.hero-visual figcaption {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 0.85rem 0.4rem 0.6rem;
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
}

/* ---------- 7. Demo section ---------- */
.live-demo-section {
  background: linear-gradient(180deg, #f5fbf8 0%, #eef9f4 100%);
  border-block: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.demo-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 2rem;
}

.demo-heading .eyebrow {
  grid-column: 1 / -1;
}

.demo-heading h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.demo-heading p:not(.eyebrow) {
  grid-column: 2;
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--muted);
}

.live-demo-section .demo-product-picker label > span {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.live-demo-section .demo-product-picker label > span:hover {
  border-color: var(--line-strong);
}

.live-demo-section .demo-product-picker input:checked + span {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  box-shadow: 0 12px 24px -14px rgba(11, 46, 37, 0.8);
}

.demo-player {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.demo-step-list button {
  border-radius: 14px;
}

.demo-step-list button[aria-current="step"] {
  background: var(--forest);
}

/* ---------- 8. Family ---------- */
.family-intro {
  padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(2.5rem, 4vw, 3.5rem);
}

.section-heading.left {
  max-width: none;
  text-align: left;
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}

.section-heading.left:has(> p:last-child:not(.eyebrow)) {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.section-heading.left:has(> p:last-child:not(.eyebrow)) .eyebrow {
  grid-column: 1 / -1;
}

.section-heading.left:has(> p:last-child:not(.eyebrow)) h2 {
  grid-column: 1;
  margin: 0;
}

.section-heading.left:has(> p:last-child:not(.eyebrow)) > p:last-child {
  grid-column: 2;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0 0 0.9rem;
}

.family-cards {
  gap: 18px;
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.family-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.family-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.family-card h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.family-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 30rem;
}

.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mint-dark);
  margin: 0 0 0.55rem;
}

.product-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px -10px rgba(10, 31, 25, 0.5);
}

.price-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d5f50;
}

/* Flagship card — dark band that ties the page to the product artwork. */
.family-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  column-gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--forest);
  border-color: var(--forest);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.family-card.featured:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
  border-color: var(--forest);
}

.featured-body {
  padding: clamp(2rem, 3.2vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.family-card.featured h3 {
  color: #fff;
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  margin: 0 0 0.85rem;
}

.family-card.featured p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 27rem;
  margin-bottom: 1.6rem;
}

.family-card.featured .card-category {
  color: var(--mint-bright);
}

.family-card.featured .status-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #cdf6e8;
}

.family-card.featured .inline-link {
  color: var(--mint-bright);
  font-size: 0.92rem;
}

.family-card.featured .inline-link:hover {
  color: #fff;
}

.family-card.featured .card-bottom {
  margin-top: 0;
  justify-content: flex-start;
}

.featured-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #0f3b2e;
}

.featured-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease);
}

.family-card.featured:hover .featured-visual img {
  transform: scale(1.05);
}

.featured-visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  background: linear-gradient(90deg, var(--forest), rgba(11, 46, 37, 0));
  z-index: 1;
}

/* ---------- 9. Company story & timeline ---------- */
.company-story {
  background: var(--pale);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  border-block: 1px solid var(--line);
}

.company-story .wrap {
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.company-story h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.company-story .story-copy p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3d5249;
}

.story-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.history-section {
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem);
}

.history-grid {
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.history-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.history-intro h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
}

.history-intro p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
  max-width: 22rem;
}

.timeline {
  border-left: 1px solid var(--line-strong);
  padding-left: 2rem;
}

.timeline li {
  padding-bottom: 2.2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--mint);
  box-sizing: border-box;
}

.timeline li:first-child::before {
  background: var(--mint);
}

.timeline time {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mint-dark);
  margin-bottom: 0.45rem;
}

.timeline h3 {
  font-size: 1.14rem;
  margin: 0 0 0.4rem;
}

.timeline p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.company-note {
  font-size: 0.82rem;
  color: #7a8a83;
  max-width: 62ch;
  margin-top: 1rem;
}

/* ---------- 10. FAQ ---------- */
.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.faq {
  background: var(--gray);
  border-block: 1px solid var(--line);
}

.faq-grid {
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.faq-grid > div:first-child {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.faq-list details {
  border-top: 1px solid var(--line-strong);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  position: relative;
  padding: 1.4rem 3.5rem 1.4rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.faq-list summary:hover {
  color: var(--mint-dark);
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--mint-dark);
  background: #fff;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  content: "\2212";
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.faq-list details p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
  padding: 0 3rem 1.6rem 0;
  margin: 0;
  max-width: 46rem;
}

.faq-list details p a {
  color: var(--mint-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 121, 95, 0.3);
}

/* ---------- 11. Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
  border-top: 0;
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.contact::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(760px, 90%);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(0, 194, 160, 0.28),
    rgba(0, 194, 160, 0) 66%
  );
  pointer-events: none;
}

.contact .wrap {
  position: relative;
  z-index: 1;
}

.contact .eyebrow {
  color: var(--mint-bright);
}

.contact h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin: 0 0 1.1rem;
}

.contact-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
}

.contact .button-primary {
  background: var(--mint);
  color: var(--forest-deep);
  box-shadow: 0 20px 40px -18px rgba(0, 194, 160, 0.55);
}

.contact .button-primary:hover {
  background: #fff;
  color: var(--forest-deep);
  transform: translateY(-2px);
}

.contact-address {
  margin-top: 1.9rem;
  font-size: 0.92rem;
}

.contact-address > a {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.contact-address > a:hover {
  color: var(--mint-bright);
  border-color: var(--mint-bright);
}

.contact .copy-email {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.contact .copy-email:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.contact .copy-status {
  color: var(--mint-bright);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  display: block;
  padding: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fcfa);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 3vw, 2.75rem);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 24rem;
}

.footer-brand {
  font-size: 1.3rem;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.footer-mail {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mint-dark);
  border-bottom: 1px solid rgba(0, 121, 95, 0.3);
  padding-bottom: 1px;
}

.footer-mail:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

/* The footer columns are <nav> elements, so the legacy `.site-footer nav`
   (a horizontal link row) and `.site-footer.wrap nav` rules were overriding the
   column layout and wrapping the links into a second column. Reset them here. */
.site-footer .footer-grid .footer-col {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  max-width: none;
  padding-block: 0;
  border-block: 0;
  font-size: inherit;
  color: inherit;
}

/* style.css gives `.site-footer p` a 100% flex-basis for its single-row footer,
   which made the column title eat the whole column height and pushed the links
   to the bottom. Release it. */
.site-footer .footer-grid .footer-col > * {
  flex: 0 0 auto;
}

.site-footer .footer-grid .footer-col-title {
  text-align: left;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #85948d;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--mint-dark);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem 1.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: #85948d;
}

.footer-base p {
  margin: 0;
}

/* Legacy footer markup fallback (single-row). */
.site-footer.wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.2rem;
}

.site-footer.wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.88rem;
}

/* ---------- 13. Subpage patterns ---------- */
.page-intro {
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem);
  max-width: 60rem;
}

.page-intro h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.042em;
  margin: 0 0 1.2rem;
}

.page-intro > p:last-child {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.detail-hero {
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2rem, 3.5vw, 3rem);
}

.detail-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.042em;
}

.detail-hero .detail-intro {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.1rem;
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 1.16rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--muted);
  margin: 0;
}

.feature-card > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mint-dark);
}

.screens-grid img {
  border-radius: var(--r);
}

.screens-grid strong {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.screens-grid figcaption span {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.stars-section {
  background: var(--pale);
  border-block: 1px solid var(--line);
}

.product-cta {
  background: var(--forest);
  color: #fff;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.product-cta h2 {
  color: #fff;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.product-cta .button-primary {
  background: var(--mint);
  color: var(--forest-deep);
}

.product-cta .button-primary:hover {
  background: #fff;
}

.product-subnav {
  border-block: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.support-contact {
  border-radius: var(--r-lg);
  background: var(--pale);
  border: 1px solid var(--line);
}

.policy-toc {
  font-size: 0.88rem;
}

.policy-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-top: 2.4rem;
}

.policy-body p,
.policy-body li,
.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #3d5249;
}

.policy-body a,
.legal-content a:not(.button) {
  color: var(--mint-dark);
  border-bottom: 1px solid rgba(0, 121, 95, 0.3);
}

.workflow-section {
  background: var(--pale);
  border-block: 1px solid var(--line);
}

.principles h3 {
  font-size: 1.2rem;
}

.principle-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mint-dark);
}

.hero-detail {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    height: auto;
    min-height: 72px;
    padding-inline: 24px;
  }

  .studio-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .studio-hero h1 {
    font-size: clamp(2.5rem, 7vw, 3.6rem);
  }

  .demo-heading,
  .section-heading.left:has(> p:last-child:not(.eyebrow)) {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .demo-heading h2,
  .demo-heading p:not(.eyebrow),
  .section-heading.left:has(> p:last-child:not(.eyebrow)) h2,
  .section-heading.left:has(> p:last-child:not(.eyebrow)) > p:last-child {
    grid-column: 1;
  }

  .history-intro,
  .faq-grid > div:first-child {
    position: static;
  }

  .history-grid,
  .faq-grid,
  .company-story .wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .family-card.featured {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 300px;
    order: -1;
  }

  .featured-visual::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand {
    font-size: 1.14rem;
  }

  .brand .mark {
    width: 28px;
    height: 28px;
  }

  .studio-hero {
    padding-block: 2.2rem 3rem;
  }

  .studio-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
    letter-spacing: -0.04em;
  }

  .studio-hero .hero-description {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    padding: 0.9rem 0.9rem 0.2rem;
    border-radius: var(--r-lg);
  }

  .hero-trust {
    gap: 0.4rem 1.1rem;
    font-size: 0.82rem;
  }

  .family-cards {
    grid-template-columns: 1fr;
  }

  .family-card {
    padding: 1.5rem;
  }

  .featured-body {
    padding: 1.75rem 1.5rem 2rem;
  }

  .family-card.featured h3 {
    font-size: 1.75rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline li::before {
    left: -1.5rem;
  }

  .faq-list summary {
    font-size: 0.98rem;
    padding-right: 3rem;
  }

  .faq-list details p {
    padding-right: 0;
  }

  .contact h2 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .contact-description {
    font-size: 0.98rem;
  }

  .contact-description br {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-base {
    justify-content: flex-start;
  }

  .page-intro h1,
  .detail-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}

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

/* ---------- 15. Motion ---------- */
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal.will-reveal,
  .reveal.will-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .family-card,
  .feature-card,
  .inline-link::after,
  .featured-visual img {
    transition: none;
  }

  .button-primary:hover,
  .button-secondary:hover,
  .family-card:hover,
  .feature-card:hover {
    transform: none;
  }
}
