/* Shared styles for the sub pages (about, contact, privacy, terms). Loaded after styles.css. */

.nav-links a[aria-current="page"] { background: var(--primary); color: var(--accent); }
.nav-links a[aria-current="page"]:hover { background: var(--primary); }

/* ---------- page hero ---------- */
.page-hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(118px, 13vw, 168px) var(--gutter) clamp(32px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
.page-hero .display { font-size: clamp(44px, 9vw, 128px); overflow-wrap: anywhere; }
.updated-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  background: var(--white); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- legal layout ---------- */
.legal {
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start;
}
details.toc, details.toc[open] { background: var(--white); border-radius: 24px; padding: 0 20px; box-shadow: inset 0 0 0 1px var(--line); }
.toc summary { min-height: 56px; font-size: 18px; }
.toc summary i { width: 32px; height: 32px; }
.toc nav { padding-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.toc a:hover { background: var(--accent-soft); color: var(--primary); }

.prose-card { background: var(--white); border-radius: 32px; padding: clamp(24px, 4.5vw, 64px); min-width: 0; }
.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  font-size: clamp(26px, 3vw, 36px); color: var(--primary);
  margin-top: 2.2em; margin-bottom: 0.1em; scroll-margin-top: 100px;
}
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 1.6em; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.7em; padding-left: 0.2em; }
.prose li::marker { color: var(--primary-light); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

@media (min-width: 1024px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  details.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .toc summary { pointer-events: none; cursor: default; min-height: 64px; }
  .toc summary i { display: none; }
}

/* ---------- about ---------- */
.about-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about-h2 { font-size: clamp(40px, 5.6vw, 88px); overflow-wrap: anywhere; }
.about-lead { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 90, "opsz" 36; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; color: var(--primary); max-width: 24em; text-wrap: balance; }
.about-copy p:not(.eyebrow):not(.about-lead), .about-body p:not(.about-lead), .trust-copy p:not(.eyebrow), .founder-text p:not(.eyebrow) { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 36em; }

/* hero */
.about-hero {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(118px, 12vw, 150px) var(--gutter) clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.about-hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; min-width: 0; }
.about-hero .display { font-size: clamp(56px, 9vw, 150px); overflow-wrap: anywhere; }
.about-hero-stage { position: relative; min-width: 0; }
.about-hero-media { aspect-ratio: 16 / 10; border-radius: 40px; overflow: hidden; background: var(--primary); }
.about-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.about-bubble {
  position: absolute; left: clamp(12px, 4%, 36px); bottom: clamp(-26px, -3vw, -14px); z-index: 2;
  display: flex; align-items: center; gap: 14px; max-width: min(340px, 86%);
  background: rgba(255, 255, 255, 0.94); color: var(--ink); border-radius: 26px; padding: 14px 20px 14px 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -22px rgba(37, 70, 82, 0.55);
  animation: bubble-float 6s ease-in-out infinite;
}
.about-bubble img { width: 44px; height: 44px; border-radius: 12px; background: var(--white); flex: none; }
.about-bubble div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.about-bubble b { font-weight: 700; font-size: 16px; }
.about-bubble span { color: var(--ink-2); font-size: 14px; }
@keyframes bubble-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* why */
.about-why { padding: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 120px); }
.about-pull { margin: 0; }
.about-pull p {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96;
  text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.9; color: var(--primary);
  font-size: clamp(44px, 9vw, 150px); text-wrap: balance; overflow-wrap: anywhere;
}
.about-prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; width: 100%; margin-top: clamp(24px, 4vw, 56px); padding-top: clamp(24px, 4vw, 48px); border-top: 2px solid var(--line); }
.about-body { display: flex; flex-direction: column; gap: 18px; }

/* split sections */
.about-split {
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.about-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.about-photo { aspect-ratio: 4 / 3; border-radius: 40px; width: 100%; }
.about-split.reverse .about-photo { aspect-ratio: 16 / 11; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-quote { margin: 4px 0; padding: 18px 0 18px 24px; border-left: 6px solid var(--primary); background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 0 20px 20px 0; }
.about-accent-quote p { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80, "opsz" 72; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; color: var(--primary); text-transform: uppercase; max-width: 14em; }

/* who */
.about-who { padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 88px); }
.who-tiles { list-style: none; margin: clamp(28px, 4vw, 48px) auto 0; padding: 0 var(--gutter); max-width: 1240px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who-tile { min-width: 0; }
.who-tile figure { margin: 0; height: 100%; background: var(--white); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); }
.who-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.8s var(--ease); }
.who-tile figure:hover img { transform: scale(1.04); }
.who-tile figure { isolation: isolate; }
.who-tile figcaption { padding: 18px 20px 22px; font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.who-tile-corgi figure { background: var(--accent); box-shadow: none; }
.who-tile-corgi img { object-fit: contain; padding: 14px 14px 0; }
.who-tile-corgi figcaption { color: var(--primary); font-weight: 700; }
.about-closing { margin-top: 12px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--ink-2); max-width: 34em; }

/* founder */
.about-founder-wrap { padding: clamp(40px, 6vw, 88px) 12px; }
.about-founder {
  max-width: 1240px; margin: 0 auto; background: var(--primary); color: var(--white); border-radius: 48px;
  padding: clamp(28px, 5vw, 80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.founder-mark { width: clamp(140px, 20vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(202, 243, 239, 0.12); }
.founder-mark img { width: 56%; height: auto; border-radius: 24%; }
.founder-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.founder-text p:not(.eyebrow) { color: rgba(255, 255, 255, 0.84); max-width: 44em; }
.founder-text strong { color: var(--white); }
.founder-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-links a { text-decoration: none; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.founder-links a:hover { background: var(--accent); color: var(--primary); }
.founder-links a:focus-visible, .about-founder a:focus-visible { outline-color: var(--accent); }

/* trust */
.about-trust-wrap { padding: clamp(24px, 4vw, 56px) 12px clamp(56px, 7vw, 100px); }
.about-trust { max-width: 1240px; margin: 0 auto; background: var(--accent); border-radius: 48px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.trust-img { margin: 0; min-height: 100%; }
.trust-img img { width: 100%; height: 100%; object-fit: cover; }
.trust-copy { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; justify-content: center; min-width: 0; }
.trust-copy .about-h2 { color: var(--primary); }
.trust-copy p:not(.eyebrow) { color: var(--primary); }
.trust-copy a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* cta tweaks */
.about-cta { padding-bottom: clamp(24px, 4vw, 48px); }
.about-cta .cta-copy { gap: 32px; }

@media (max-width: 1000px) {
  .who-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: minmax(0, 1fr); padding-top: 108px; }
  .about-hero-stage { margin-bottom: 20px; }
  .about-prose { grid-template-columns: minmax(0, 1fr); }
  .about-split, .about-trust, .about-founder { grid-template-columns: minmax(0, 1fr); }
  .about-split.reverse .about-photo { order: 2; }
  .about-founder { text-align: left; }
  .founder-mark { width: 132px; }
  .trust-img { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 640px) {
  .about-hero-media, .about-photo { border-radius: 28px; }
  .about-founder, .about-trust { border-radius: 32px; }
  .who-tiles { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; margin-inline: 0; max-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .who-tiles::-webkit-scrollbar { display: none; }
  .who-tile { flex: 0 0 76%; scroll-snap-align: start; }
  .about-bubble { padding: 12px 16px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-bubble { animation: none !important; }
  .who-tile img { transition: none; }
  .who-tile figure:hover img { transform: none; }
  .who-tile.reveal { opacity: 1; transform: none; }
}

/* ---------- contact ---------- */
.contact-main {
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: stretch;
}
.form-card { background: var(--white); border-radius: 40px; padding: clamp(24px, 4.5vw, 64px); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.form-card form { width: 100%; margin-top: 8px; flex: 1; display: flex; flex-direction: column; }
.form-card .field:has(textarea) { flex: 1; }
.form-card textarea { flex: 1; }
.form-card button[type="submit"] { align-self: flex-start; }
.card-h, .side-h { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; }
.card-h { font-size: clamp(36px, 4.4vw, 64px); color: var(--primary); overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 700; font-size: 15px; color: var(--primary); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; min-height: 52px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.6; transition: opacity 0.2s ease; }
.field input:focus::placeholder, .field textarea:focus::placeholder { opacity: 0.35; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); background: var(--white); border-radius: 16px; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f2; }
.field-error { font-size: 14px; font-weight: 600; color: #b3261e; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-2); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 16px; font-weight: 600; font-size: 16px; }
.form-status.ok { background: var(--accent-soft); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(37, 70, 82, 0.2); }
.form-status.bad { background: #fdf3f2; color: #8c1d18; box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.3); }

.contact-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.info-card { background: var(--accent); border-radius: 40px; overflow: hidden; min-width: 0; isolation: isolate; }
.info-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.info-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.info-card:hover .info-img img { transform: scale(1.04); }
.info-body { display: flex; gap: 16px; align-items: flex-start; padding: clamp(20px, 2.4vw, 32px); color: var(--primary); }
.info-body > div { min-width: 0; }
.side-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--accent); }
.side-h { font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.info-body p { font-size: 18px; font-weight: 600; }
.side-link { color: var(--primary); font-weight: 700; font-size: clamp(15px, 4.2vw, 18px); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.side-link:hover { color: var(--primary-2); text-decoration-thickness: 2px; }
.find-card { background: var(--white); border-radius: 32px; padding: clamp(20px, 2.4vw, 32px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.find-card .side-h { margin: 0; }
.contact-faq .btn { margin-top: 4px; }

@media (max-width: 900px) {
  .contact-main { grid-template-columns: minmax(0, 1fr); }
  .info-img { aspect-ratio: 4 / 3; }
  .form-card textarea { min-height: 160px; flex: none; }
}
@media (max-width: 640px) {
  .prose-card, .form-card, .info-card, .find-card { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .info-img img { transition: none; }
  .info-card:hover .info-img img { transform: none; }
}
