/* Carden product site. Warm, simple, playful. Static CSS; animation gated on prefers-reduced-motion. */
:root {
  --bg: #F6F2EA;
  --card: #FFFDF9;
  --ink: #252A30;
  --secondary: #665E55;
  --orange: #B52F09;
  --orange-soft: #FBE6DE;
  --yellow: #FFBE28;
  --yellow-soft: #FFF1CC;
  --blue: #075B89;
  --blue-soft: #DCEAF3;
  --green: #2F7A4A;
  --green-soft: #DDF0E3;
  --bezel: #1F2226;
  --radius: 22px;
  --max: 1120px;
  --shadow: 0 30px 60px rgba(60, 40, 20, 0.18), 0 10px 20px rgba(60, 40, 20, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--secondary); font-weight: 500; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow.yellow { background: var(--yellow-soft); color: #7A5200; }
.eyebrow.blue { background: var(--blue-soft); color: var(--blue); }
.eyebrow.orange { background: var(--orange-soft); color: var(--orange); }
.eyebrow.green { background: var(--green-soft); color: var(--green); }

/* soft accent blobs behind the hero, as on the screenshots */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.26; }
.blob.yellow { background: var(--yellow); width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -18vw; top: -10vw; }
.blob.blue { background: var(--blue); opacity: 0.14; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; right: -16vw; top: 20vw; }
.blob.orange { background: var(--orange); opacity: 0.12; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; left: 35vw; bottom: -20vw; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--orange); }

/* hero */
.hero { position: relative; padding: 24px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy { padding: 30px 0 60px; }
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lead { max-width: 30ch; margin-bottom: 30px; }
.hero-copy .note { margin-top: 14px; font-size: 0.9rem; color: var(--secondary); }
.hero-icon { width: 92px; height: 92px; filter: drop-shadow(0 14px 24px rgba(60, 40, 20, 0.25)); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 20px 12px 16px; border-radius: 14px; font-weight: 600; line-height: 1.15;
  transition: transform 0.2s ease, background 0.2s ease;
}
.badge:hover { transform: translateY(-2px); background: #000; }
.badge small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.badge span { display: block; font-size: 1.1rem; }
.badge svg { width: 26px; height: 26px; flex: none; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 40px 0 20px; min-height: 520px; }

/* device frames: the generic dark bezel used on the App Store screenshots */
.phone {
  width: 100%; max-width: 330px; background: var(--bezel); padding: 2%;
  border-radius: 11% / 5.1%; box-shadow: var(--shadow); position: relative;
}
.phone img { width: 100%; border-radius: 9% / 4.2%; aspect-ratio: 1320 / 2868; }
.phone::before { /* speaker slit, keeps the frame from reading as a flat rectangle */
  content: ""; position: absolute; top: 1.4%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 1.4%; background: #0d0f11; border-radius: 999px; opacity: 0.9;
}
.tablet {
  width: 100%; background: var(--bezel); padding: 1.6%;
  border-radius: 4.5% / 6%; box-shadow: var(--shadow);
}
.tablet img { width: 100%; border-radius: 3.4% / 4.6%; aspect-ratio: 2064 / 2752; }
.duo { width: 100%; background: var(--bezel); padding: 1.4%; border-radius: 3.6% / 5%; box-shadow: var(--shadow); }
.duo img { width: 100%; border-radius: 2.6% / 3.7%; aspect-ratio: 2853 / 2007; }

.hero .phone { transform: rotate(-4deg); z-index: 1; }
/* floating example chips around the hero phone */
.float { position: absolute; z-index: 2; }
.float.a { left: 0; top: 70px; }
.float.b { right: 0; top: 160px; }
.float.c { left: 10px; bottom: 150px; }
.float.d { right: 6px; bottom: 60px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.95rem;
  padding: 10px 16px 10px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(60, 40, 20, 0.14);
  border: 1px solid rgba(60, 40, 20, 0.06);
}
.chip .em { font-size: 1.25rem; line-height: 1; }
.chip.yellow { background: var(--yellow-soft); }
.chip.blue { background: var(--blue-soft); }
.chip.orange { background: var(--orange-soft); }
.chip.green { background: var(--green-soft); }

/* collections marquee */
.collections { padding: 10px 0 40px; overflow: hidden; }
.collections p { text-align: center; color: var(--secondary); font-weight: 600; margin-bottom: 18px; }
.marquee { display: flex; gap: 12px; width: max-content; padding: 6px 0; }
.marquee + .marquee { margin-top: 12px; }
.marquee.reverse { animation-direction: reverse; }
.marquee-track { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* feature rows */
.features { padding: 40px 0 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 0; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy .lead { margin-bottom: 22px; }
.feature-art { display: flex; justify-content: center; }
.feature-art .phone { max-width: 320px; }
.details { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.details li { background: var(--card); border: 1px solid rgba(60, 40, 20, 0.08); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }

/* tilted stack behind a feature phone, playful but quiet */
.stack { position: relative; }
.stack::before, .stack::after {
  content: ""; position: absolute; inset: 6% 8%; border-radius: 28px; z-index: -1;
}
.stack.yellow::before { background: var(--yellow); opacity: 0.55; transform: rotate(-7deg); }
.stack.blue::before { background: var(--blue); opacity: 0.22; transform: rotate(6deg); }
.stack.orange::before { background: var(--orange); opacity: 0.22; transform: rotate(-6deg); }
.stack.green::before { background: var(--green); opacity: 0.22; transform: rotate(6deg); }

/* example records, fanned out next to the "Every detail" feature */
.recordcards { display: grid; gap: 14px; margin-top: 26px; max-width: 420px; }
.rcard {
  background: var(--card); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.08); border: 1px solid rgba(60, 40, 20, 0.06);
}
.rcard .em { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.rcard strong { display: block; font-size: 0.98rem; }
.rcard small { color: var(--secondary); font-size: 0.85rem; }
.rcard .val { font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.rcard .stars { color: #E39A0F; letter-spacing: 1px; font-size: 0.9rem; }

/* share with a link */
.share { padding: 60px 0; }
.share .panel {
  background: var(--card); border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center;
  box-shadow: 0 20px 50px rgba(60, 40, 20, 0.12); border: 1px solid rgba(60, 40, 20, 0.06);
}
.share .panel-copy { padding: 48px; }
.share .panel-copy h2 { margin-bottom: 14px; }
.share .panel img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* every screen */
.screens { padding: 50px 0; text-align: center; }
.screens h2 { margin-bottom: 12px; }
.screens .lead { margin: 0 auto 40px; max-width: 54ch; }
.screens-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; }
.screens figcaption { margin-top: 16px; font-weight: 600; color: var(--secondary); }

/* facts grid */
.facts { padding: 50px 0 80px; }
.facts h2 { text-align: center; margin-bottom: 36px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(60, 40, 20, 0.06); box-shadow: 0 8px 20px rgba(60, 40, 20, 0.06); }
.fact .em { font-size: 1.8rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px; }
.fact p { color: var(--secondary); font-size: 0.97rem; margin-top: 6px; }
.em.yellow { background: var(--yellow-soft); }
.em.blue { background: var(--blue-soft); }
.em.orange { background: var(--orange-soft); }
.em.green { background: var(--green-soft); }

/* closing */
.closing { text-align: center; padding: 50px 0 90px; }
.closing .hero-icon { margin: 0 auto 22px; }
.closing h2 { margin-bottom: 14px; }
.closing .lead { margin: 0 auto 28px; max-width: 40ch; }

/* footer */
footer { border-top: 1px solid rgba(60, 40, 20, 0.1); padding: 30px 0 50px; color: var(--secondary); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--secondary); }
footer a:hover { color: var(--orange); }

/* article page (privacy) */
.article { padding: 30px 0 90px; max-width: 68ch; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 10px; }
.article .date { color: var(--secondary); margin-bottom: 30px; font-weight: 500; }
.article h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.article p { margin-bottom: 14px; font-size: 1.05rem; }
.article ul { margin: 0 0 14px 22px; font-size: 1.05rem; }
.article li { margin-bottom: 6px; }
.article .summary { background: var(--yellow-soft); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 10px; font-weight: 600; }
.article .summary p { margin: 0; }

/* scroll-in reveal and motion, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.2s; }
  .hero .phone { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .float { animation: pop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.3) both, bob 6s ease-in-out infinite 1s; }
  .float.a { animation-delay: 0.5s, 1.0s; }
  .float.b { animation-delay: 0.7s, 1.8s; }
  .float.c { animation-delay: 0.9s, 2.6s; }
  .float.d { animation-delay: 1.1s, 3.4s; }
  .marquee { animation: slide 48s linear infinite; }
  .marquee.reverse { animation-duration: 56s; }
  .marquee-track:hover .marquee { animation-play-state: paused; }
  .rcard { transition: transform 0.25s ease; }
  .rcard:hover { transform: translateY(-3px) rotate(-0.5deg); }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(-4deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee .dup { display: none; }
}

/* layout on narrower screens */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding: 10px 0 20px; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-icon { margin: 0 auto; }
  .hero-art { min-height: 0; padding: 30px 0 10px; }
  .hero .phone { max-width: 260px; }
  .float.a { left: 0; top: 30px; }
  .float.b { right: 0; top: 110px; }
  .float.c { left: 0; bottom: 110px; }
  .float.d { right: 0; bottom: 30px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; text-align: center; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art .phone { max-width: 250px; }
  .details { justify-content: center; }
  .recordcards { margin-left: auto; margin-right: auto; text-align: left; }
  .share .panel { grid-template-columns: 1fr; }
  .share .panel-copy { padding: 32px 26px; text-align: center; }
  .screens-grid { grid-template-columns: 1fr; gap: 30px; }
  .screens-grid .tablet { max-width: 520px; margin: 0 auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .top nav { gap: 14px; font-size: 0.9rem; }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .float.b, .float.d { right: -6px; }
  .float.a, .float.c { left: -6px; }
  .chip { font-size: 0.85rem; padding: 8px 12px 8px 10px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
