/*
 * The home page of a Pet Movie site (templates/pet_movie_home.html).
 * Light and warm. Mobile first. The page sets --a and --b to the brand
 * accents. Baloo 2 is the display font of the logo. Inter is the text font.
 */

:root {
  color-scheme: light;
  --bg: #fff8f3;
  --bg-warm: #fff1e7;
  --surface: #ffffff;
  --ink: #221a33;
  --text: #3f3752;
  --muted: #5f5670;
  --line: #f1e3d9;
  --brand-text: #d4372b;
  --cta-start: #f4661f;
  --cta-end: #e5344c;
  --cta: linear-gradient(120deg, var(--cta-start), var(--cta-end));
  --shadow-sm: 0 2px 10px rgba(84, 44, 20, .07);
  --shadow: 0 14px 34px rgba(84, 44, 20, .11);
  --shadow-lg: 0 30px 70px rgba(84, 44, 20, .2);
  --radius: 22px;
  --display: "Baloo 2", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }

/* Buttons */

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
.btn .icon { width: 19px; height: 19px; stroke-width: 2.4; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 12px 28px rgba(229, 52, 76, .3); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(229, 52, 76, .36); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: var(--shadow), inset 0 0 0 1px #e7d3c6; }
.btn-ghost .icon { color: var(--cta-end); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(80, 20, 20, .22); }
.btn-white:hover { transform: translateY(-1px); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(84, 44, 20, .06); }
.header-row { height: var(--header-height); display: flex; align-items: center; gap: 20px; }
.logo { flex: 0 0 auto; display: block; border-radius: 10px; }
.logo img { width: auto; height: 30px; }
.main-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-link, .main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.header-link:hover, .main-nav a:hover { background: rgba(244, 102, 31, .1); color: var(--brand-text); }
.header-cta { display: none; }

.menu { position: relative; }
.menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(34, 26, 51, .06); }
.menu summary .icon { width: 24px; height: 24px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.menu-panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--bg-warm); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 36px;
  background:
    radial-gradient(70% 55% at 88% 12%, rgba(255, 170, 120, .45), transparent 70%),
    radial-gradient(60% 50% at 70% 95%, rgba(255, 120, 140, .22), transparent 70%),
    radial-gradient(50% 45% at 0% 20%, rgba(255, 214, 180, .5), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; align-items: center; }
.hero-grid > *, .hero-copy > * { justify-self: start; }
/* On a phone, the children of .hero-copy join the hero grid. The phones
   then sit under the lead and show on the first screen. */
.hero-copy { display: contents; }
.hero-copy > .eyebrow-row { order: 1; }
.hero-copy > h1 { order: 2; }
.hero-copy > .lead { order: 3; }
.hero-copy > .hero-actions { order: 4; }
.hero-copy > .fine-print { order: 5; }
.hero-grid > .hero-stage { order: 6; justify-self: center; margin: 22px auto 4px; }
.hero-copy > .hero-points { order: 7; }
.hero-copy > .store-badge { order: 8; }
.hero-copy > .style-facts { order: 3; }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px #f6d7c6;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 700;
}
.eyebrow .icon { width: 17px; height: 17px; }
.eyebrow-free { color: #1a6b43; box-shadow: inset 0 0 0 1px #bfe3cf; background: rgba(236, 250, 242, .9); }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 11vw, 76px);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.highlight {
  background: linear-gradient(100deg, #f4661f 0%, #ec4a3b 45%, #e0304f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 560px; margin-top: 12px; color: var(--text); font-size: clamp(16px, 4.2vw, 20px); line-height: 1.5; }
/* On a phone the notes on the phones say the same, so the button fits on the first screen. */
.hero-points { display: none; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: 15px; font-weight: 700; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.point-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 52, 76, .25);
}
.point-icon .icon { width: 16px; height: 16px; stroke-width: 2.3; }
.hero-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { flex: 1 1 100%; }
.song-chip .icon { color: var(--cta-end); }
.fine-print { margin-top: 10px; color: var(--muted); font-size: 14px; }
.store-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  text-decoration: none;
}
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }

/* The hero phones. The center phone plays the gallery loops one after
   another. The side phones each play one loop. */
.hero-stage {
  position: relative;
  width: min(100%, 520px);
  height: 380px;
  margin: 0 auto;
}
.phone {
  position: absolute;
  padding: 7px;
  border: 0;
  border-radius: 30px;
  background: #1c1526;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font: inherit;
  color: #fff;
}
.phone-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #2a2233;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.phone-main { left: 50%; top: 0; width: 198px; transform: translateX(-50%); z-index: 3; }
.phone-side { top: 44px; width: 146px; z-index: 1; cursor: pointer; padding: 6px; border-radius: 24px; }
.phone-side .phone-screen { border-radius: 19px; }
.phone-side-1 { left: 2px; transform: rotate(-7deg); }
.phone-side-2 { right: 2px; transform: rotate(7deg); }
/* The main phone covers the inner half of a side phone, so a caption of
   the movie would show cut. The side phones show the upper part only. */
.phone-side .media > img, .phone-side .media > video { height: 124%; }
.phone-side:hover { z-index: 2; }
.phone-side:focus-visible, .phone-screen:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.phone-island { position: absolute; left: 50%; top: 9px; z-index: 4; width: 34%; height: 15px; transform: translateX(-50%); border-radius: 999px; background: #0d0a12; }
.phone-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.phone-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 44px 12px 12px;
  background: linear-gradient(to top, rgba(18, 12, 24, .88), rgba(18, 12, 24, 0));
}
.phone-chip { justify-self: start; padding: 2px 9px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 12px; font-weight: 800; }
.phone-title { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.15; }
.phone-sound { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; white-space: nowrap; }
.phone-sound .icon { width: 15px; height: 15px; }
.float-note {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.float-note .point-icon { width: 28px; height: 28px; flex-basis: 28px; box-shadow: none; }
.float-note-song { right: 0; top: 4px; }
.float-note-you { left: 0; bottom: 6px; }

/* Media that plays a silent loop over its poster. The loop fades in when it
   plays. pet_home.js sets the source only while the media is on screen. */
.media { position: relative; overflow: hidden; isolation: isolate; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media > video { opacity: 0; transition: opacity .45s ease; }
.media > video.is-live { opacity: 1; }

/* Sections */

.section { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.kicker { color: var(--brand-text); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin-top: 6px; font-size: clamp(30px, 7vw, 46px); line-height: 1.05; text-wrap: balance; }
.section-lead { margin-top: 10px; color: var(--muted); font-size: 17px; }

/* The wall of moving cards */

.wall-section { background: linear-gradient(to bottom, var(--bg), var(--bg-warm)); }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wall li { min-width: 0; }
.wall-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wall-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wall-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.card-media { display: block; width: 100%; aspect-ratio: 9 / 16; background: #2a2233; color: #fff; }
.card-chip {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  max-width: calc(100% - 52px);
  padding: 3px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-sound {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 12, 24, .5);
  backdrop-filter: blur(6px);
}
.card-sound .icon { width: 16px; height: 16px; }
.card-text { flex: 1; display: grid; align-content: start; gap: 3px; padding: 10px 12px 12px; }
.card-title { color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.15; }
.card-caption { display: none; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wall-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 28px; text-align: center; }
.wall-end-text { color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 800; }
.wall-end .btn { flex: 0 0 auto; }

/* The two selling points */

.section.highlights-section { padding-top: 0; background: var(--bg-warm); }
.highlights { display: grid; gap: 16px; }
/* On a phone the video sits on top of the text, in a square crop. */
.highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.highlight-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #2a2233;
  color: #fff;
  cursor: pointer;
}
.highlight-media:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.highlight-play {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 12, 24, .62);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.highlight-play .icon { width: 15px; height: 15px; }
.highlight-body { display: grid; gap: 8px; padding: 4px 8px 10px; }
.highlight-body h3 { font-size: clamp(21px, 5.4vw, 30px); line-height: 1.08; text-wrap: balance; }
.highlight-body p:not(.kicker) { color: var(--text); font-size: 15px; }
.highlight-body .style-link { margin-top: 2px; padding-top: 0; }

/* "Pause videos" / "Play videos" (pet_home.js) */
.motion-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle-hero { position: absolute; right: 0; bottom: 0; z-index: 5; margin: 0; }

/* A phone shows the first wall cards, then "See all examples" (pet_home.js). */
.wall-more { margin-top: 20px; text-align: center; }
.wall-more .btn { min-width: 220px; }
@media (max-width: 559px) {
  .wall.is-collapsed .is-extra { display: none; }
}
@media (min-width: 560px) {
  .wall-more { display: none; }
}

/* The input photos of a sample movie, with an arrow into the movie. */
.made-from { display: grid; gap: 6px; margin: 2px 0 4px; }
.made-from-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.made-from-row { display: flex; align-items: center; gap: 8px; }
.made-from-row img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.made-from-row .made-from-movie { width: 36px; height: 64px; border-radius: 8px; }
.made-from-arrow { color: var(--brand-text); }
.style-wall .made-from { margin-top: 8px; }

/* How it works */

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.step-number {
  position: absolute;
  right: 18px;
  top: 14px;
  color: #f6dccd;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.step-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--cta); color: #fff; box-shadow: 0 10px 22px rgba(229, 52, 76, .25); }
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { margin-top: 16px; font-size: 22px; line-height: 1.2; }
.step p { margin-top: 6px; color: var(--text); }

/* Movie styles */

.styles-section { background: var(--surface); }
.styles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 14px;
  margin: 0 -16px;
  padding: 4px 16px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  list-style: none;
  scrollbar-width: thin;
}
.style-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  scroll-snap-align: start;
}
.style-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: #2a2233;
  color: #fff;
  cursor: pointer;
}
.style-media:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.style-play {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 12, 24, .5);
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
  transition: transform .15s ease, background-color .15s ease;
}
.style-play .icon { width: 22px; height: 22px; margin-left: 3px; }
.style-media:hover .style-play { transform: scale(1.08); background: rgba(229, 52, 76, .85); }
.style-length { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: rgba(18, 12, 24, .62); font-size: 12px; font-weight: 700; }
.style-media-empty { cursor: default; background: linear-gradient(150deg, var(--a), var(--b)); }
.style-media-empty[data-theme="night"] { background: linear-gradient(150deg, #3a4a5c, #10151f); }
.style-media-empty[data-theme="field"] { background: linear-gradient(150deg, #1f8f6a, #0f2a3a); }
.style-media-empty[data-theme="stage"] { background: linear-gradient(150deg, #6b3fd4, #1a1330); }
.style-media-empty[data-theme="party"] { background: linear-gradient(150deg, #ff5bb7, #ffb347); }
.style-media-empty .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.style-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.style-body h3 { font-size: 22px; line-height: 1.15; }
.style-body h3 a { color: inherit; text-decoration: none; }
.style-body h3 a:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.style-tagline { color: var(--ink); font-weight: 600; line-height: 1.45; }
.style-who { color: var(--muted); font-size: 14px; line-height: 1.45; }
.style-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag-song { background: #fff1e7; box-shadow: inset 0 0 0 1px #f6c9ab; color: #9a3412; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 12px; font-weight: 700; }
.style-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-text);
  font-weight: 800;
  text-decoration: none;
}
.style-link .icon { width: 17px; height: 17px; stroke-width: 2.5; transition: transform .15s ease; }
.style-link:hover .icon { transform: translateX(3px); }

/* Pricing */

.price-grid { display: grid; align-items: start; gap: 16px; max-width: 920px; margin: 0 auto; }
.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.price-free { background: linear-gradient(160deg, #fff 30%, #fff0e6); box-shadow: var(--shadow), inset 0 0 0 2px #f8c9ae; }
.price-label { color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-value { color: var(--ink); font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; }
.price-text { color: var(--text); }
.price-list { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 500; }
.price-list .icon { width: 20px; height: 20px; margin-top: 2px; color: #1f9d63; stroke-width: 2.6; }
.price-card .btn { margin-top: 6px; }
.watermark { margin: 4px 0 18px; display: grid; gap: 8px; }
.watermark img { width: 200px; height: auto; border-radius: 999px; box-shadow: var(--shadow-sm); }
.watermark figcaption { color: var(--muted); font-size: 13px; }
.pack-list { width: 100%; display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.pack-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pack-name { color: var(--ink); font-weight: 700; }
.pack-credits { display: block; color: var(--muted); font-size: 13px; }
.pack-price { color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 800; }
.pack-buy {
  min-height: 44px;
  min-width: 88px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(229, 52, 76, .22);
}
.pack-buy:disabled, .price-card .btn:disabled { opacity: .6; cursor: progress; }
.price-note { color: var(--muted); font-size: 13px; }
.price-value small { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--muted); }
.price-monthly { box-shadow: var(--shadow), inset 0 0 0 2px #d9cdf0; }
.checkout-status { max-width: 920px; margin: 14px auto 0; text-align: center; color: var(--ink); font-weight: 600; }
.checkout-status:empty { display: none; }
.style-prices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 920px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.style-prices span { white-space: nowrap; }

/* Questions */

.faq-section { background: var(--surface); }
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 14px 56px 14px 20px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--brand-text);
  border-bottom: 2.5px solid var(--brand-text);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; color: var(--text); }

/* Final call to action */

.final-section { padding: 24px 0 64px; }
.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 36px 24px;
  border-radius: 30px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%),
    var(--cta);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px rgba(229, 52, 76, .25);
}
.final-icon { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 12px 30px rgba(80, 20, 20, .3); }
.final-cta h2 { color: #fff; font-size: clamp(28px, 7vw, 42px); line-height: 1.05; text-wrap: balance; }
.final-cta p { margin-top: 6px; font-size: 18px; opacity: .95; }

/* Footer */

.site-footer { padding: 48px 0 110px; background: #1d1629; color: #cfc6dd; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { width: auto; height: 34px; }
.footer-brand p { max-width: 280px; margin-top: 12px; font-size: 15px; }
.footer-links { display: grid; align-content: start; gap: 4px; }
.footer-links h2 { margin-bottom: 6px; color: #fff; font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { justify-self: start; padding: 4px 0; color: #cfc6dd; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom { display: grid; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a69dba; font-size: 13px; }

/* The call to action at the bottom of a phone screen. It shows when the
   hero buttons and the final band are out of view. */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(84, 44, 20, .12);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 52px; font-size: 17px; }
.mobile-cta span { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Style pages (pet_style_page.html) */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--ink); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); text-decoration: underline; }
.style-hero h1 { font-size: clamp(34px, 8.5vw, 58px); line-height: 1.04; }
.style-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.style-stage { order: 6; display: grid; justify-items: center; gap: 12px; margin: 24px auto 0; }
.phone-single { position: relative; width: 240px; }
.style-about-grid { display: grid; gap: 32px; }
.style-text h2, .style-movies-title { font-size: clamp(26px, 6vw, 36px); line-height: 1.1; }
.style-text p { max-width: 640px; margin-top: 14px; font-size: 17px; line-height: 1.65; }
.style-text .btn { margin-top: 22px; }
.style-movies-title { margin-bottom: 16px; }
.wall.style-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.other-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.other-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-decoration: none;
}
.other-card strong { font-family: var(--display); font-size: 21px; }
.other-card span { grid-column: 1; color: var(--muted); font-size: 15px; }
.other-card .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--brand-text); }
.other-card:hover { box-shadow: var(--shadow), inset 0 0 0 1px #e7d3c6; }

/* Wider screens */

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-points { display: flex; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .card-caption { display: block; }
  .styles { grid-auto-columns: 44%; }
  .hero-stage { height: 470px; }
  .phone-main { width: 244px; }
  .phone-side { top: 60px; width: 176px; }
  .phone-title { font-size: 19px; }
}

@media (min-width: 760px) {
  :root { --header-height: 72px; }
  .wrap { width: min(1200px, calc(100% - 48px)); }
  .logo img { height: 36px; }
  .mobile-cta { display: none; }
  .site-footer { padding-bottom: 48px; }
  .section { padding: 80px 0; }
  .final-section { padding: 24px 0 80px; }
  .highlight-card { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 28px; padding: 16px; }
  .highlight-media { aspect-ratio: 9 / 16; }
  .highlight-body { gap: 10px; padding: 4px 6px 4px 0; }
  .highlight-body p:not(.kicker) { font-size: 16px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .price-grid-3 { max-width: 1200px; }
  .price-card { padding: 34px 32px; }
  .final-cta { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 28px; padding: 40px 44px; text-align: left; }
  .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: auto 1fr; gap: 24px; }
  .footer-bottom p:last-child { text-align: right; }
  .styles { grid-auto-columns: 30%; }
}

@media (min-width: 900px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .price-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .style-about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .other-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1000px) {
  .main-nav { display: flex; gap: 2px; margin-left: 12px; }
  .menu { display: none; }
  .styles { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .style-body h3 { font-size: 21px; }
}

/* Two columns in the hero only when the phones fit next to the text. */
@media (min-width: 1100px) {
  .hero { padding: 24px 0 20px; }
  .section.wall-section { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-actions { width: auto; margin-top: 26px; }
  .hero-grid > .hero-stage { width: 100%; max-width: 540px; height: 568px; margin: 0; justify-self: end; }
  .phone-main { width: 300px; top: 20px; padding: 9px; border-radius: 40px; }
  .phone-main .phone-screen { border-radius: 32px; }
  .phone-side { top: 100px; width: 204px; padding: 7px; border-radius: 30px; }
  .phone-side .phone-screen { border-radius: 24px; }
  .phone-side-1 { left: -4px; }
  .phone-side-2 { right: -4px; }
  .phone-caption { padding: 60px 16px 16px; gap: 6px; }
  .phone-title { font-size: 22px; }
  .phone-sound { font-size: 13px; }
  .phone-chip { font-size: 12px; padding: 3px 10px; }
  .float-note { font-size: 14px; padding: 7px 14px 7px 7px; }
  .float-note .point-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .float-note-song { right: -10px; top: 40px; }
  .float-note-you { left: -20px; bottom: 0; }
  .motion-toggle-hero { right: 30px; bottom: 6px; }
  .style-stage { order: 0; margin: 0; justify-self: center; }
  .phone-single { width: 300px; padding: 9px; border-radius: 40px; }
  .phone-single .phone-screen { border-radius: 32px; }
}

@media (min-width: 1180px) {
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (hover: none) {
  .wall-card:hover, .btn-primary:hover, .btn-white:hover { transform: none; }
}

/* Reduced motion stops the decorative motion. The loops are the product
   demo and keep playing (pet_home.js), with a "Pause videos" button. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wall-card, .style-play, .style-link .icon, .mobile-cta, .site-header, .media > video, .faq summary::after { transition: none; }
  .wall-card:hover, .btn:hover { transform: none; }
}
