@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #173841;
  --muted: #61757a;
  --ocean: #007f86;
  --ocean-dark: #00656b;
  --seafoam: #dff3ee;
  --sand: #f7f1e7;
  --paper: #fffdf9;
  --coral: #ed765f;
  --sky: #dceff3;
  --line: #dce5e3;
  --radius: 16px;
  --shadow-paper: 0 2px 3px rgb(23 56 65 / 4%), 0 14px 32px rgb(23 56 65 / 10%);
  --shadow-lift: 0 4px 6px rgb(23 56 65 / 6%), 0 18px 40px rgb(23 56 65 / 14%);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--sand); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 88% 5%, var(--sky), transparent 30rem), var(--sand);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

:focus-visible { outline: 3px solid rgb(0 127 134 / 48%); outline-offset: 3px; }

.site-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--ocean);
  font-size: 18px;
  letter-spacing: 0;
}

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.eyebrow { margin: 0 0 9px; color: var(--ocean); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.065em; }
h2 { margin-bottom: 7px; font-size: 1.1rem; letter-spacing: -.03em; }
.lede { max-width: 590px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ocean); box-shadow: 0 7px 16px rgb(0 127 134 / 20%); }
.button-primary:hover { background: var(--ocean-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: rgb(255 253 249 / 75%); }
.button-secondary:hover { background: var(--paper); box-shadow: var(--shadow-paper); }
.button-small { min-height: 37px; padding: 0 14px; font-size: .8rem; }

.hero { padding: clamp(58px, 10vw, 120px) 0 58px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }

.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.screen-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.screen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.screen-card::after { position: absolute; right: -26px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--seafoam); content: ""; }
.screen-card:nth-child(3n + 2)::after { background: var(--sky); }
.screen-card:nth-child(3n)::after { background: #f9e4cf; }
.screen-card > * { position: relative; z-index: 1; }
.screen-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: rgb(255 255 255 / 82%); font-size: 21px; }
.screen-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.card-link { color: var(--ocean); font-size: .85rem; font-weight: 800; }
.tag { display: inline-block; margin-bottom: 8px; color: var(--ocean); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.page-main { padding: 42px 0 76px; }
.breadcrumb { display: inline-flex; gap: 8px; margin-bottom: 40px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.page-card { max-width: 760px; padding: clamp(28px, 7vw, 64px); border: 1px solid rgb(255 255 255 / 70%); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-paper); }
.page-card h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.page-card p { max-width: 510px; color: var(--muted); }
.coming-soon { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 16px; border-radius: 12px; color: var(--ocean-dark); background: var(--seafoam); font-size: .88rem; font-weight: 600; }
.page-footer { padding: 0 0 32px; color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .topbar { padding: 18px 0; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card { min-height: 185px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
}

/* Product hero — Pass 1 */
.product-page {
  background: #fbf8f2;
}

.product-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 20px 32px;
}

.product-nav, .product-nav-actions { display: flex; align-items: center; }
.product-nav { justify-content: space-between; }
.product-nav-actions { gap: 8px; }

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.icon-button:hover { transform: translateY(-2px); background: rgb(255 255 255 / 74%); box-shadow: 0 5px 13px rgb(23 56 65 / 8%); }
.icon-button svg { width: 20px; height: 20px; }

.product-intro { padding: clamp(15px, 3.6vw, 26px) 4px 8px; }
.product-brand { margin-bottom: 9px; color: var(--ocean); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.product-intro h1 { margin: 0; font-size: clamp(1.65rem, 7.2vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -.038em; }
.product-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: #4f5553; font-size: .8rem; font-weight: 500; }
.rating-stars { color: #c88127; font-size: 1.08rem; letter-spacing: .02em; line-height: 1; }

.product-gallery { padding-top: 0; }
.gallery-viewport { position: relative; overflow: hidden; border-radius: var(--radius); background: transparent; outline-offset: 5px; touch-action: pan-y; cursor: grab; }
.gallery-viewport:active { cursor: grabbing; }
.gallery-track { display: flex; will-change: transform; transition: transform 460ms cubic-bezier(.2, .75, .2, 1); }
.gallery-slide { display: flex; min-width: 100%; height: min(100vw, 530px); min-height: 300px; margin: 0; align-items: flex-start; justify-content: center; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.gallery-counter { position: absolute; z-index: 2; right: 6px; bottom: 10px; padding: 5px 8px; border-radius: 999px; color: #fff; background: rgb(35 42 40 / 72%); font-size: .7rem; font-weight: 700; }

/* Observed card */
.observation-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgb(225 221 212 / 72%);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.observation-card h2 { margin: 0 0 14px; color: var(--ink); font-size: .96rem; font-weight: 600; letter-spacing: -.02em; }
.observation-facts { display: flex; width: 100%; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; }
.observation-item { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #45504f; font-size: .82rem; line-height: 1.35; }
.observation-item svg { width: 18px; height: 18px; flex: 0 0 auto; color: #344241; stroke-width: 1.7; }
.observation-date { color: #263534; font-weight: 600; }
.observation-place, .observation-retailer { font-weight: 400; }
.observation-retailer { margin-top: 14px; }

@media (max-width: 380px) {
  .product-shell { padding-right: 14px; padding-left: 14px; }
  .gallery-slide { min-height: 315px; }
  .gallery-control { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track, .icon-button { transition: none; }
}
