/* LumiPet official site — V3 (merged direction) */
:root {
  --cream: #f7f3ee;
  --paper: #fbf9f6;
  --stone: #efe9e2;       /* warm grey */
  --line: rgba(74, 60, 53, .14);
  --sand: #a8957f;
  --cocoa: #4a3c35;
  --ink: #33261f;
  --muted: #6e5d54;
  --blush: #f2dcd6;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --header: 68px;
  --gutter: clamp(20px, 5.5vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cocoa); color: var(--cream); border-radius: 8px; }
.skip:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(44px, 4.7vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.05; }
h3 { font-size: clamp(40px, 3.6vw, 56px); line-height: 1; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand);
}
.lead { margin: 18px 0 0; font-size: 18.5px; line-height: 1.55; color: var(--muted); max-width: 30em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream);
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: background-color .2s;
}
.btn:hover { background: var(--ink); }
.text-link {
  font-size: 15.5px; font-weight: 500; color: var(--cocoa); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.text-link::after { content: " →"; }
.text-link:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.bar { height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: .005em; }
.site-header ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.site-header nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50vw;
  height: clamp(620px, calc(100svh - var(--header)), 980px);
}
.hero-photo { grid-column: 2; grid-row: 1; position: relative; margin: 0; overflow: hidden; background: #5a4239; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 32px 26px;
  background: linear-gradient(to top, rgba(38, 26, 20, .55), transparent);
  color: rgba(247, 243, 238, .82);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.hero-photo figcaption span { font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--cream); margin-right: 10px; }

.hero-copy {
  grid-column: 1; grid-row: 1;
  align-self: center;
  padding: 40px clamp(32px, 4vw, 72px) 40px var(--gutter);
}
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-copy .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-copy h1 { max-width: 7.5em; }
.hero-copy .lead { max-width: 25em; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }

.crew {
  display: flex; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 420px; text-decoration: none;
}
.crew-faces { display: flex; }
.crew-faces img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--cream); margin-left: -10px;
}
.crew-faces img:first-child { margin-left: 0; }
.crew-text { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.crew-text small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.crew:hover .crew-text { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- moments ---------- */
.moments { background: var(--stone); padding: 104px 0 104px; overflow: hidden; }
.moments-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.moments-copy { padding-bottom: 0; }
.phones { display: flex; justify-content: center; gap: 32px; align-items: flex-end; }
.phone { width: min(290px, 44%); height: auto; filter: drop-shadow(0 24px 36px rgba(60, 40, 30, .18)) drop-shadow(0 4px 8px rgba(60, 40, 30, .1)); }
.phone-a { margin-bottom: 64px; }

/* ---------- companions ---------- */
.companions { padding: 120px 0 112px; background: var(--paper); }
.companions-head { max-width: 640px; margin-bottom: 56px; }
.picker { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }

.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 12px 16px 12px 12px; border: 0; border-radius: 18px;
  background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: background-color .2s;
}
.tabs button:hover { background: var(--stone); }
.tabs button[aria-selected="true"] { background: var(--tint, var(--stone)); }
.tabs img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.tabs span { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.tabs small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 2px; }
#tab-luna { --tint: #f6e4df; }
#tab-coco { --tint: #f7ead3; }
#tab-mochi { --tint: #e3eaf3; }
#tab-poppy { --tint: #e9ecdc; }

.pet {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  border-radius: 28px; overflow: hidden;
  background: var(--tint);
}
.pet[hidden] { display: none; }
.pet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pet-info { align-self: end; padding: 40px 40px 44px; }
.pet-info .eyebrow { margin-bottom: 12px; font: italic 400 18px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pet-info .trait { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.pet--luna { --tint: #f2dcd6; }
.pet--coco { --tint: #f3e3c8; }
.pet--mochi { --tint: #dbe4ef; }
.pet--poppy { --tint: #e3e6d1; }
@media (prefers-reduced-motion: no-preference) {
  .pet:not([hidden]) { animation: fade .35s ease both; }
  @keyframes fade { from { opacity: .4; } }
}

/* ---------- closing ---------- */
.closing { padding: 88px var(--gutter); background: var(--cream); display: grid; place-items: center; }
.closing img { width: min(360px, 72vw); border-radius: 32px; box-shadow: 0 30px 60px -30px rgba(74, 50, 40, .35); }

/* ---------- footer ---------- */
.site-footer { background: var(--stone); border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; gap: 32px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.foot ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.foot nav { flex: 1; }
.foot nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .copy { margin: 0; font-size: 13px; color: var(--sand); }

/* ================= tablet ================= */
@media (max-width: 1080px) {
  .picker { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tabs button { flex: 1 0 auto; width: auto; }
}

/* ================= iPhone ================= */
@media (max-width: 760px) {
  :root { --header: 56px; }
  body { font-size: 16px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 20px; }
  .site-header ul { gap: 20px; }
  .site-header nav a { font-size: 14px; }
  .nav-ext { display: none; }

  .hero { display: block; height: auto; }
  .hero-photo { height: min(62svh, 520px); }
  .hero-photo img { object-position: 50% 46%; }
  .hero-photo figcaption { padding: 40px 20px 14px; font-size: 11.5px; }
  .hero-photo figcaption span { font-size: 17px; }
  .hero-copy { padding: 26px 20px 40px; }
  .hero-copy .eyebrow { display: none; }
  h1 { font-size: 40px; }
  .lead { font-size: 16.5px; margin-top: 12px; }
  .actions { margin-top: 22px; gap: 22px; }
  .btn { flex: 1 1 100%; }
  .actions .text-link { display: none; }
  .crew { margin-top: 26px; padding-top: 20px; }

  .moments { padding: 72px 0 64px; }
  .moments-grid { grid-template-columns: 1fr; gap: 36px; }
  .moments-copy { padding-bottom: 0; }
  .phones { gap: 14px; }
  .phone { width: 44%; }
  .phone-a { margin-bottom: 36px; }

  .companions { padding: 72px 0 64px; }
  .companions-head { margin-bottom: 28px; }
  .container { padding: 0 20px; }
  .tabs { gap: 8px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex-direction: column; gap: 8px; padding: 10px 8px; min-width: 76px; text-align: center; flex: 1 0 76px; }
  .tabs img { width: 54px; height: 54px; border-radius: 50%; }
  .tabs span { font-size: 16px; }
  .tabs small { display: none; }
  .pet { grid-template-columns: 1fr; border-radius: 24px; }
  .pet-info { padding: 22px 22px 26px; }
  h3 { font-size: 38px; }

  .closing { padding: 72px 20px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* App Store link. Apple badge rules: one badge per layout, unmodified, at least 40px high, clear space of a quarter of its height. */
.store-badge { display: inline-flex; line-height: 0; border-radius: 9px; }
.store-badge img { height: 52px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 4px; }
.site-header .nav-get a { color: var(--ink); font-weight: 600; }
.closing { gap: 30px; }
.closing-get { font-size: 16px; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .store-badge img { height: 46px; }
  .site-header nav li:first-child { display: none; }
}
