/*
  Shelfie website. Built from "Shelfie Website v2" (Claude Design, 23 October brief):
  desktop drawn at 1440, mobile at 390, with a tablet step between.
  Tokens are the app's own (src/theme/tokens.ts, via the design system bundle).
  No external requests: the fonts and every image are served from this folder.
*/

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Lato-Regular.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Lato-Bold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/fonts/Lato-Black.ttf") format("truetype"); }

:root {
  --color-gradient-top: #EEE2E8;
  --color-gradient-mid: #F5F3F3;
  --color-gradient-end: #F6F6F6;
  --color-surface: #FFFFFF;
  --color-ink: #3A3238;
  --color-ink2: #736970;
  --color-line: #EAE0DC;
  --color-brand: #C21060;
  --color-brand-pressed: #8F0B46;
  --color-brand-soft: #FAECF2;
  --shadow-card: 0 2px 8px rgba(88, 66, 78, 0.06);
  --font-lato: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 120px;
  --section-gap: 136px;
  --card-radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-lato);
  color: var(--color-ink);
  background-color: var(--color-gradient-end);
  background-image: linear-gradient(180deg, var(--color-gradient-top) 0px, var(--color-gradient-mid) 520px, var(--color-gradient-end) 1000px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-pressed); }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 6px; }

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

.skip-link { position: absolute; left: 16px; top: -48px; padding: 10px 16px; background: var(--color-surface); color: var(--color-ink); font-weight: 700; border-radius: 12px; box-shadow: var(--shadow-card); z-index: 10; }
.skip-link:focus { top: 16px; }

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

/* ---------------------------------------------------------------- header */

.site-header { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-weight: 700; font-size: 23px; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { font-weight: 700; font-size: 16px; color: var(--color-ink); min-height: 44px; display: flex; align-items: center; }
.site-nav a:hover { color: var(--color-brand); }
.store { display: flex; flex: none; align-items: center; min-height: 44px; }
.store img { width: 120px; height: 40px; }
.store--large img { width: 162px; height: 54px; }

/* ----------------------------------------------------------------- shared */

.eyebrow { font-weight: 900; font-size: 13px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-ink2); }
.h2 { font-weight: 700; font-size: 52px; line-height: 58px; color: var(--color-ink); text-wrap: balance; }
.h3 { font-weight: 700; font-size: 22px; line-height: 28px; color: var(--color-ink); }
.lede { font-size: 18px; line-height: 28px; color: var(--color-ink2); text-wrap: pretty; }
.small { font-size: 16px; line-height: 24px; color: var(--color-ink2); text-wrap: pretty; }
.note { font-size: 15px; line-height: 22px; color: var(--color-ink); }
.brand-word { color: var(--color-brand); }
.card { background: var(--color-surface); border-radius: var(--card-radius); box-shadow: var(--shadow-card); }

.section { padding-top: var(--section-gap); }
.section--stack { display: flex; flex-direction: column; gap: 48px; }
.copy { display: flex; flex-direction: column; gap: 24px; }

/* Two columns, media on one side. Media comes first in the markup so it leads on a phone. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.split--media-right > .media { order: 2; }
.media { display: flex; justify-content: center; }

/* ------------------------------------------------------------------ phone */

/* One frame, sized by --w. Proportions taken from the design's frames (320 wide → 12 padding, 53 corners). */
.phone {
  --w: 320px;
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.0375);
  border-radius: calc(var(--w) * 0.1656);
  background: #1D191C;
  box-shadow: inset 0 0 0 1.5px #4A4046, 0 2px 6px rgba(88, 66, 78, 0.12), 0 28px 56px rgba(88, 66, 78, 0.18);
}
.phone__screen { position: relative; aspect-ratio: 920 / 2000; border-radius: calc(var(--w) * 0.128); overflow: hidden; background: var(--color-gradient-end); }
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__status { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.phone__island { position: absolute; left: 50%; top: calc(var(--w) * 0.025); width: calc(var(--w) * 0.2875); height: calc(var(--w) * 0.0844); transform: translateX(-50%); border-radius: 999px; background: #000; }

/* The product page, bottom half only: no top to the frame, faded in from above. */
.phone-lower { padding: 0 44px 60px; margin: 0 -44px -60px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px); mask-image: linear-gradient(180deg, transparent 0, #000 36px); }
.phone-lower__frame { width: 380px; padding: 0 14px 14px; border-radius: 0 0 63px 63px; background: #1D191C; box-shadow: inset 0 0 0 1.5px #4A4046, 0 2px 6px rgba(88, 66, 78, 0.12), 0 28px 56px rgba(88, 66, 78, 0.18); }
.phone-lower__screen { aspect-ratio: 920 / 938; border-radius: 0 0 49px 49px; overflow: hidden; background: var(--color-surface); }
.phone-lower__screen img { width: 100%; height: 100%; }

/* ------------------------------------------------------------------- hero */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 40px; align-items: center; padding-top: 40px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 { font-weight: 700; font-size: 76px; line-height: 82px; color: var(--color-ink); text-wrap: balance; }
.hero__lede { font-size: 21px; line-height: 32px; color: var(--color-ink); text-wrap: pretty; max-width: 27ch; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hero__phones { position: relative; width: 560px; height: 712px; }
.hero__back { position: absolute; left: 250px; top: 0; --w: 280px; }
.hero__front { position: absolute; left: 0; top: 64px; --w: 310px; }

/* --------------------------------------------------------- open-jar figure */

.jar-figure { margin-top: 12px; padding: 36px 40px; display: flex; align-items: center; gap: 36px; }
.jar-figure svg { flex: none; width: 170px; height: 145px; fill: none; stroke: var(--color-ink); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.jar-figure text { fill: var(--color-ink); stroke: none; font-family: var(--font-lato); font-weight: 700; font-size: 44px; }
.jar-figure figcaption { font-size: 16px; line-height: 24px; color: var(--color-ink2); text-wrap: pretty; }

/* ------------------------------------------------------------ how it works */

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.step__mark { height: 56px; display: flex; align-items: center; margin-bottom: 8px; }
.icon-tile { width: 56px; height: 56px; flex: none; border-radius: 17px; background: var(--color-brand-soft); display: grid; place-items: center; }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: var(--color-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile text { fill: var(--color-ink); stroke: none; font-family: var(--font-lato); font-weight: 700; font-size: 7.5px; }
.pill-button { height: 48px; padding: 0 22px; border-radius: 999px; background: var(--color-brand); color: var(--color-surface); display: flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: 16px; line-height: 20px; }

/* --------------------------------------------------------------- ring card */

.ring-card { padding: 20px 28px 20px 20px; display: flex; align-items: center; gap: 24px; max-width: 460px; margin-top: 8px; }
.ring-card img { flex: none; width: 112px; height: 112px; border-radius: 18px; }
.ring-card div { display: flex; flex-direction: column; gap: 6px; }

/* -------------------------------------------------------------- shop check */

.shop-card { width: 100%; max-width: 500px; padding: 72px 48px; display: flex; justify-content: center; }
.shop-card svg { width: 300px; height: auto; }

/* --------------------------------------------------------- also in Shelfie */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tile__shot { width: 100%; height: auto; border-radius: 22px; }
.tile .icon-tile { width: 48px; height: 48px; border-radius: 14px; }
.tile__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile .h3 { padding-top: 6px; }

/* ------------------------------------------------------------ list blocks */

.rule-list { display: flex; flex-direction: column; }
.rule-item { padding: 28px 0; border-top: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 6px; }
.more-link { font-weight: 700; font-size: 17px; line-height: 24px; color: var(--color-brand); display: flex; align-items: center; gap: 6px; min-height: 44px; padding-top: 12px; }
.more-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }

/* ---------------------------------------------------------------- pricing */

.pricing { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.pricing__head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; width: 100%; max-width: 920px; }
.plan { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.plan__head { display: flex; flex-direction: column; gap: 10px; }
.plan__price { font-weight: 700; font-size: 48px; line-height: 1; color: var(--color-ink); }
.plan__price-row { display: flex; align-items: baseline; gap: 10px; }
.plan__once { font-size: 18px; color: var(--color-ink); }
.plan__fine { font-size: 13px; line-height: 18px; color: var(--color-ink2); }
.plan hr { border: 0; height: 1px; margin: 0; background: var(--color-line); }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 22px; color: var(--color-ink); }
.ticks svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--color-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------------------------- FAQ */

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; align-items: start; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--color-line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 28px 0 10px; font-weight: 700; font-size: 22px; line-height: 28px; color: var(--color-ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--color-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 140ms cubic-bezier(0, 0, 0.58, 1); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 0 28px; }
.faq__answer p { font-size: 18px; line-height: 28px; color: var(--color-ink2); text-wrap: pretty; }
.faq__answer strong { font-weight: 700; color: var(--color-ink); }
.faq-contact { font-size: 16px; line-height: 24px; color: var(--color-ink2); text-wrap: pretty; }
.faq-contact--after { display: none; }

/* On a wide screen every answer shows; the plus signs only belong to the folding list on a phone. */
@media (min-width: 900px) {
  .faq summary { cursor: default; pointer-events: none; }
  .faq summary svg { display: none; }
}

.shelf-life { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.shelf-life__note { font-size: 14px; line-height: 20px; color: var(--color-ink2); }
.shelf-life__card { padding: 4px 24px; border-radius: 20px; }
.shelf-life table { width: 100%; border-collapse: collapse; }
.shelf-life td { padding: 12px 0; font-size: 15px; line-height: 20px; color: var(--color-ink); }
.shelf-life td:first-child { padding-right: 12px; }
.shelf-life td:last-child { font-weight: 700; text-align: right; }
.shelf-life tr + tr td { border-top: 1px solid var(--color-line); }

/* --------------------------------------------------------- closing + footer */

.closing { margin-top: 160px; padding-top: 140px; background: linear-gradient(180deg, var(--color-gradient-end) 0%, var(--color-gradient-top) 100%); }
.closing__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.closing h2 { font-size: 60px; line-height: 66px; max-width: 15ch; }
.closing__spacer { height: 120px; }

.site-footer { border-top: 1px solid rgba(58, 50, 56, 0.12); padding: 28px 0 48px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer .brand { gap: 9px; }
.site-footer .brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-footer .brand span { font-size: 17px; }
.site-footer__copy { font-size: 15px; line-height: 20px; color: var(--color-ink); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--color-ink); min-height: 44px; display: flex; align-items: center; }
.site-footer nav a:hover { color: var(--color-brand); }
.site-footer__credit { font-size: 14px; line-height: 20px; color: var(--color-ink); }

/* -------------------------------------------------------------- doc pages */

.doc { max-width: 680px; margin: 0 auto; padding: 64px 0 160px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-weight: 700; font-size: 64px; line-height: 70px; color: var(--color-ink); text-wrap: balance; }
.doc__updated { margin-bottom: 12px; font-size: 15px; line-height: 22px; font-style: italic; color: var(--color-ink); }
.doc__lede { font-size: 21px; line-height: 32px; color: var(--color-ink); text-wrap: pretty; }
.doc h2 { margin-top: 28px; font-weight: 700; font-size: 28px; line-height: 34px; color: var(--color-ink); }
.doc p, .doc li { font-size: 18px; line-height: 30px; color: var(--color-ink); text-wrap: pretty; }
.doc ul { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.doc ul ul { margin-top: 8px; gap: 6px; }
.doc strong { font-weight: 700; }

.doc--support h2 { margin-top: 36px; }
.restore-steps { list-style: none; padding: 6px 28px; border-radius: 20px; }
.restore-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; }
.restore-steps li + li { border-top: 1px solid var(--color-line); }
.restore-steps__n { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.restore-steps__text { flex: 1; min-width: 0; padding-top: 2px; font-size: 18px; line-height: 28px; color: var(--color-ink); }
.doc--support p { line-height: 28px; }

/* ================================================================ tablet */

@media (max-width: 1199px) {
  :root { --gutter: 48px; --section-gap: 112px; }
  .site-nav { gap: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) 460px; }
  .hero h1 { font-size: 60px; line-height: 66px; }
  .hero__phones { width: 460px; height: 585px; }
  .hero__back { left: 205px; --w: 230px; }
  .hero__front { top: 53px; --w: 255px; }
  .split, .privacy-grid, .faq-grid { gap: 48px; }
  .h2 { font-size: 44px; line-height: 50px; }
  .closing h2 { font-size: 52px; line-height: 58px; }
  .steps, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jar-figure { padding: 28px; gap: 24px; }
  .jar-figure svg { width: 130px; height: 111px; }
}

/* =============================================== single column (phone-like) */

@media (max-width: 899px) {
  :root { --gutter: 32px; --section-gap: 88px; --card-radius: 24px; }

  .site-header { height: 68px; }
  .site-nav { display: none; }
  .brand { gap: 10px; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; }
  .brand span { font-size: 20px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .hero__copy { gap: 20px; }
  .hero h1 { font-size: 44px; line-height: 48px; }
  .hero__lede { font-size: 18px; line-height: 27px; max-width: none; }
  .hero__cta { padding-top: 4px; }
  .store--large img { width: 150px; height: 50px; }
  .note { font-size: 14px; line-height: 20px; }
  .hero__media { display: flex; justify-content: center; padding-top: 48px; }
  .hero__phones { width: auto; height: auto; }
  .hero__back { display: none; }
  .hero__front { position: relative; left: auto; top: auto; --w: 260px; }

  .eyebrow { font-size: 12px; }
  .h2 { font-size: 34px; line-height: 40px; }
  .h3 { font-size: 19px; line-height: 24px; }
  .lede { font-size: 17px; line-height: 26px; }
  .small { font-size: 15px; line-height: 22px; }
  .copy { gap: 16px; }

  .section--stack { gap: 28px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--media-right > .media { order: 0; }
  .phone { --w: 250px; }

  .phone-lower__frame { width: 300px; padding: 0 11px 11px; border-radius: 0 0 50px 50px; }
  .phone-lower__screen { border-radius: 0 0 39px 39px; }

  .jar-figure { margin-top: 4px; padding: 24px; gap: 20px; }
  .jar-figure svg { width: 110px; height: 94px; }
  .jar-figure figcaption { font-size: 15px; line-height: 22px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { padding: 24px; gap: 12px; }
  .step__mark { height: 48px; margin-bottom: 4px; }
  .icon-tile { width: 48px; height: 48px; border-radius: 14px; }

  .ring-card { padding: 16px 20px 16px 16px; gap: 16px; margin-top: 4px; }
  .ring-card img { width: 92px; height: 92px; }

  .shop-card { max-width: none; padding: 44px 32px; }
  .shop-card svg { width: 230px; }

  .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tile { padding: 20px; flex-direction: row; gap: 16px; align-items: flex-start; }
  .tile--shot { flex-direction: column; padding: 16px 16px 20px; gap: 14px; }
  .tile--shot .tile__text { padding: 0 4px; }
  .tile .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
  .tile__text { gap: 6px; }
  .tile .h3 { padding-top: 0; }

  .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .privacy-grid .rule-list { padding-top: 12px; }
  .rule-item { padding: 22px 0; }
  .more-link { font-size: 16px; padding-top: 4px; }

  .pricing { gap: 28px; align-items: stretch; }
  .pricing__head { gap: 12px; align-items: flex-start; text-align: left; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: none; }
  .plan { padding: 28px; }
  .plan__price { font-size: 40px; }

  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq { padding-top: 12px; }
  .faq summary { padding: 16px 0; font-size: 18px; line-height: 24px; }
  .faq__answer { padding-bottom: 22px; }
  .faq__answer p { font-size: 17px; line-height: 26px; }
  .faq-contact--beside { display: none; }
  .faq-contact--after { display: block; font-size: 15px; line-height: 22px; padding-top: 12px; }
  .shelf-life__card { padding: 4px 18px; }

  .closing { margin-top: 100px; padding-top: 88px; }
  .closing__copy { align-items: flex-start; text-align: left; gap: 20px; }
  .closing h2 { font-size: 36px; line-height: 42px; max-width: none; }
  .closing__spacer { height: 72px; }

  .site-footer { padding: 24px 0 40px; gap: 16px; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer nav { gap: 24px; }

  .doc { padding: 28px 0 96px; gap: 16px; }
  .doc h1 { font-size: 42px; line-height: 48px; }
  .doc__updated { margin-bottom: 6px; }
  .doc__lede { font-size: 18px; line-height: 27px; }
  .doc h2 { margin-top: 20px; font-size: 23px; line-height: 29px; }
  .doc--support h2 { margin-top: 24px; }
  .doc p, .doc li { font-size: 17px; line-height: 27px; }
  .doc ul { padding-left: 22px; }
  .restore-steps { padding: 4px 20px; }
  .restore-steps li { padding: 16px 0; }
  .restore-steps__text { font-size: 17px; line-height: 26px; }
  .doc--support p { line-height: 26px; }
}

@media (max-width: 599px) {
  :root { --gutter: 20px; }
}
