/* PetBathingTub landing. Design language derived from the Apple DESIGN.md analysis
   (awesome-design-md): photography first, alternating light / near-black tiles, one blue accent.
   Fonts: Hanken Grotesk variable, self-hosted. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --hairline: #e0e0e0;
  --tile: #1d1d1f;
  --tile-text: #ffffff;
  --tile-muted: #a1a1a6;
  --blue: #0066cc;
  --blue-hover: #0071e3;
  --blue-on-dark: #2997ff;
  --r-card: 18px;
  --r-pill: 9999px;
  --r-field: 11px;
  --nav-h: 56px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 0.2em; }

/* Browser surfaces that carry the design */
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 3px; border-radius: 4px; }
.tile-dark :focus-visible, .reserve :focus-visible { outline-color: var(--blue-on-dark); }
html { scrollbar-color: #b9b9be var(--parchment); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: #b9b9be; border-radius: var(--r-pill); border: 2px solid var(--parchment); }
input, select, textarea { caret-color: var(--blue); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.bg-parchment { background: var(--parchment); }

/* Type */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.4; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
p { max-width: 65ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }

/* Buttons: pills for every interactive element */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.011em;
  padding: 13px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: 0.875rem; padding: 7px 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-arrow { font-size: 1.0625rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: "\203A"; font-size: 1.3em; line-height: 1; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.03em; font-size: 1.1875rem; white-space: nowrap; }
.brand span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.875rem; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 24px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; background: var(--parchment); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Entry */
.section-head { max-width: 46rem; }
.section-head .lead { margin-top: 20px; }
.center { text-align: center; margin-inline: auto; }
.center .lead, .center p { margin-inline: auto; }
.pair { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
.pair figure { background: #fff; border-radius: var(--r-card); overflow: hidden; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pair figcaption { padding: 6px 28px 28px; font-size: 1.0625rem; color: var(--ink); }
.pair figcaption strong { font-weight: 600; display: block; margin-bottom: 2px; }
.pair figcaption span { color: var(--ink-2); }

/* Microbubbles, dark tile with full-bleed photo */
.tile-dark { background: var(--tile); color: var(--tile-text); overflow: hidden; isolation: isolate; }
.tile-dark .bg { position: absolute; inset: 0; z-index: -2; }
.tile-dark .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.tile-dark .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,29,31,0.96) 0%, rgba(29,29,31,0.86) 42%, rgba(29,29,31,0.3) 100%); }
.micro { min-height: min(86dvh, 820px); display: flex; align-items: center; padding-block: clamp(72px, 9vw, 120px); }
.micro .inner { max-width: 40rem; }
.micro .lead { color: #d2d2d7; margin-top: 20px; }
.chips-label { margin-top: 36px; font-size: 0.9375rem; color: var(--tile-muted); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 42rem; }
.chips li { padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 1rem; background: rgba(255, 255, 255, 0.06); }
.fine { margin-top: 20px; font-size: 0.8125rem; color: var(--tile-muted); }
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -40px; width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.04) 60%);
  opacity: 0; animation: rise var(--d) linear var(--dl) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate3d(var(--x), -900px, 0); opacity: 0; }
}

/* Controls bento: 5 cells, 4 x 2 grid */
.bento { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 330px); gap: 16px; }
.cell { position: relative; border-radius: var(--r-card); background: var(--parchment); overflow: hidden; display: flex; flex-direction: column; }
.cell.big { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.cell img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cell .media { flex: 1; min-height: 0; overflow: hidden; }
.cell:not(.big) .media img { transform: scale(1.7); }
.cell .txt { padding: 22px 24px 26px; }
.cell .txt h3 { font-size: 1.1875rem; }
.cell .txt p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.cell.big .txt { padding: 28px 32px 34px; }
.cell.big .txt h3 { font-size: 1.625rem; }
.cell.big .txt p { font-size: 1.0625rem; }
.cell.text { justify-content: flex-end; padding: 0; }
.cell.text .txt { padding: 28px 24px; }
.cell.text.dark { background: var(--tile); color: #fff; }
.cell.text.dark p { color: #c7c7cc; }
.cell.text.blue { background: var(--blue); color: #fff; }
.cell.text.blue p { color: #e8f1fb; }

/* Gallery strip */
.strip { margin-top: clamp(36px, 5vw, 56px); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 28px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.strip figure { flex: 0 0 min(78vw, 420px); scroll-snap-align: start; }
.strip .frame { background: #fff; border-radius: var(--r-card); overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); max-width: 30ch; }

/* Audience */
.who { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.who h3 { font-size: 1.75rem; }
.who p { margin-top: 12px; color: var(--ink-2); font-size: 1.1875rem; }
.who + .who-note { margin-top: 40px; }

/* Specs */
.specs { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.spec { background: #fff; border-radius: var(--r-card); padding: 32px 28px 30px; }
.spec .val { font-size: clamp(1.875rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.spec .key { margin-top: 10px; font-size: 1.0625rem; font-weight: 500; }
.spec p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
details.more { margin-top: 24px; background: #fff; border-radius: var(--r-card); }
details.more summary { cursor: pointer; padding: 22px 28px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after, .faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--blue); transition: transform 0.3s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
.feature-list { padding: 0 28px 28px; columns: 2; column-gap: 40px; }
.feature-list li { break-inside: avoid; padding: 6px 0; color: var(--ink); }
.feature-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; vertical-align: middle; background: var(--blue); border-radius: 50%; }
.note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-2); }

/* FAQ */
.faq { margin-top: clamp(36px, 5vw, 56px); max-width: 48rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-size: 1.1875rem; font-weight: 500; display: flex; justify-content: space-between; gap: 24px; align-items: center; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 4px 24px; color: var(--ink-2); }

/* Reserve */
.reserve { background: var(--tile); color: #fff; }
.reserve-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.reserve .lead { color: #d2d2d7; margin-top: 20px; }
.price { margin-top: 32px; font-size: 1.0625rem; color: #d2d2d7; }
.price strong { display: block; font-size: 2.5rem; letter-spacing: -0.03em; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.price[hidden] { display: none; }
form.card { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
label small { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #86868b; border-radius: var(--r-field); padding: 13px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 104px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25); }
input::placeholder, textarea::placeholder { color: #6e6e73; }
.hp { position: absolute; left: -5000px; height: 0; width: 0; overflow: hidden; }
.err { color: #b3261e; font-size: 0.875rem; min-height: 1.2em; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.form-foot .btn { width: 100%; padding-block: 15px; }
.form-foot small { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.4; }
.status { padding: 14px 16px; border-radius: var(--r-field); font-size: 0.9375rem; display: none; }
.status.show { display: block; }
.status.ok { background: #e8f3ea; color: #14532d; }
.status.bad { background: #fdecea; color: #7a1a13; }

footer { background: var(--parchment); color: var(--ink-2); font-size: 0.8125rem; padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* Motion: hero entrance, scroll reveals. Default is visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--dl, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-media img { animation: settle 1.6s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles { display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Tablet and mobile: every asymmetric grid collapses explicitly */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-grid, .reserve-grid, .who, .specs { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cell.big { grid-column: 1 / -1; grid-row: auto; }
  .cell .media { aspect-ratio: 4 / 3; flex: none; }
  .cell.big .media { aspect-ratio: 1; }
  .cell:not(.big) .media img { transform: scale(1.35); }
  .cell.text { min-height: 190px; }
  .feature-list { columns: 1; }
  .tile-dark .bg::after { background: linear-gradient(180deg, rgba(29,29,31,0.9) 0%, rgba(29,29,31,0.8) 100%); }
}
@media (max-width: 600px) {
  .pair { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell.text { min-height: 0; }
  form.card { grid-template-columns: 1fr; }
  .btn { padding-inline: 22px; }
  .hero-cta .btn { width: 100%; }
}
