/* whysocks landing. Tokens copied from design/schermate/nosocks-tokens.css */
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/Caveat-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root, [data-theme="light"] {
  --paper: #fdf9f4; --paper-raised: #ffffff; --paper-sunk: #f4ece0;
  --line: #e9e0d2; --line-strong: #8a869f; --ink: #08113a; --ink-muted: #595d7c;
  --ribbon: #4a45f7; --ribbon-soft: #ecebfe; --on-ribbon: #ffffff;
  --sun: #fdbb21; --sun-edge: #d4940a; --sun-soft: #fff1cc; --sun-ink: #875600; --on-bright: #08113a;
  --coral: #fe5e5d; --coral-soft: #ffe5e0; --coral-ink: #b9292a;
  --mint: #127a4a; --mint-soft: #ddf5e8;
  --shadow-card: 0 1px 2px #08113a0f, 0 10px 24px -12px #08113a33;
  --shadow-float: 0 12px 32px -8px #08113a40;
  --focus-ring: 0 0 0 2px #fdf9f4, 0 0 0 5px #4a45f7;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1033; --paper-raised: #181b47; --paper-sunk: #080a26;
  --line: #2a2e63; --line-strong: #6e72a8; --ink: #f8f3ea; --ink-muted: #b3b5d6;
  --ribbon: #8f8cff; --ribbon-soft: #25286b; --on-ribbon: #0e1033;
  --coral: #ff7a70; --coral-ink: #ff9088;
  --focus-ring: 0 0 0 2px #0e1033, 0 0 0 5px #8f8cff;
}
:root {
  --font-display: Fredoka, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: Caveat, "Bradley Hand", cursive;
  --radius-md: 14px; --radius-lg: 22px; --radius-xl: 32px; --radius-full: 999px;
  --gutter: 20px;
  --max: 1160px;
  --ease-press: cubic-bezier(.3, .7, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-full); z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.eyebrow { font: 600 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ribbon); margin-bottom: 18px; }
.display { font: 600 clamp(44px, 9vw, 92px)/.98 var(--font-display); letter-spacing: -.02em; }
.title-xl { font: 600 clamp(32px, 5.2vw, 56px)/1.04 var(--font-display); letter-spacing: -.015em; max-width: 18ch; }
.title-xl em { font-style: normal; color: var(--ribbon); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-muted); max-width: 52ch; margin-top: 20px; }
.link { color: var(--ribbon); font-weight: 600; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em;
  background: var(--coral); border-radius: 99px; transform: rotate(-4deg) scaleX(0); transform-origin: left;
  animation: strike 700ms var(--ease-out) 500ms forwards;
}
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: none; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; color: var(--ink-muted); }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav__links { display: flex; } .nav .btn { margin-left: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 600 16px/1 var(--font-display); border-radius: var(--radius-full); transition: transform 120ms var(--ease-press), background .2s; }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--ribbon)); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; min-width: 196px;
  background: var(--ink); color: var(--paper); border-radius: 16px; text-decoration: none;
  box-shadow: 0 1px 0 #ffffff1a inset, var(--shadow-card);
  transition: transform 120ms var(--ease-press), box-shadow .2s;
}
.store:hover { box-shadow: 0 1px 0 #ffffff1a inset, var(--shadow-float); }
.store:active { transform: scale(.97); }
.store__icon { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__text small { font-size: 11px; opacity: .75; letter-spacing: .02em; }
.store__text strong { font: 600 19px/1.1 var(--font-display); }
.store.is-primary { order: -1; }
.store.is-secondary { background: var(--paper-raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.store.is-secondary:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.hero__note { margin-top: 18px; font-size: 15px; color: var(--ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__copy .lead { margin-top: 24px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}
.hero__visual { position: relative; display: grid; place-items: center; padding: 8px 0 40px; }
.hero__visual::before {
  content: ""; position: absolute; inset: 6% 2% 14%; border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  background: var(--ribbon-soft); z-index: 0;
}

/* Phone mockup */
.phone {
  position: relative; z-index: 1; width: min(320px, 82vw); aspect-ratio: 390 / 760;
  background: #0b1030; border-radius: 48px; padding: 10px;
  box-shadow: 0 40px 80px -30px #08113a66, 0 0 0 1px #08113a22;
}
.phone--tilt { transform: rotate(-3deg); }
.phone__screen { height: 100%; background: var(--paper); border-radius: 39px; padding: 44px 16px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.app-head { display: flex; align-items: center; gap: 14px; padding-left: 4px; }
.app-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.app-head__title { font: 600 24px/1.1 var(--font-display); letter-spacing: -.01em; }
.app-head .badge { height: 22px; padding: 0 8px; font-size: 11px; }
.chips { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius-full); background: var(--paper-raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); font: 650 12px/1 var(--font-sans); white-space: nowrap; }
.chip--on { background: var(--ribbon-soft); color: var(--ribbon); box-shadow: inset 0 0 0 2px var(--ribbon); font-weight: 700; }

.wish { background: var(--paper-raised); border-radius: var(--radius-lg); padding: 8px 8px 14px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.wish__photo { position: relative; background: var(--paper-sunk); border-radius: var(--radius-md); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.wish__photo > svg { width: 58%; }
.wish__store { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: var(--radius-full); background: var(--paper-raised); font-size: 11px; line-height: 14px; font-weight: 700; }
.wish__body { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
/* PriceTag: the price as a gift tag */
.price-tag {
  position: absolute; right: 10px; bottom: -10px; display: inline-flex; align-items: center;
  height: 32px; padding: 0 10px 0 23px; border-radius: 0 9px 9px 0; background: var(--sun); color: var(--on-bright);
  font: 600 19px/1 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transform: rotate(-4deg);
}
.price-tag::before { content: ""; position: absolute; top: 50%; left: 10px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper-raised); }
.level { display: inline-flex; align-items: center; gap: 6px; }
.level__hearts { display: inline-flex; gap: 2px; }
.level__on { color: var(--coral); }
.level__off { color: var(--line-strong); }
.level__label { font-size: 12px; line-height: 16px; font-weight: 650; color: var(--coral-ink); }
.wish__name { font-weight: 650; font-size: 15px; line-height: 20px; }
.note { margin: 2px 0; padding: 7px 11px; border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); background: var(--sun-soft); color: var(--ink); font: 600 19px/22px var(--font-hand); transform: rotate(-1deg); }
.note__by { display: block; font-size: 16px; line-height: 18px; text-align: right; }
.note__by::before { content: "— "; }
.btn-gift {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 4px;
  height: 48px; border-radius: var(--radius-full); background: var(--sun); color: var(--on-bright);
  font: 600 16px/1 var(--font-display); box-shadow: 0 4px 0 var(--sun-edge);
}
.btn-gift--block { margin-top: 22px; height: 56px; font-size: 17px; }

.toast {
  position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  background: var(--paper-raised); color: var(--ink); font-size: 14px; line-height: 18px;
  padding: 12px 18px 12px 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  animation: pop 360ms cubic-bezier(.34, 1.56, .64, 1) 1.2s both;
}
.toast__check { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); flex: none; }
.toast__text { display: flex; flex-direction: column; }
.toast__text strong { font: 600 16px/20px var(--font-display); }
@keyframes pop { from { transform: translate(-50%, 10px) scale(.96); } }

/* Avatars and badges */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--coral-soft); color: var(--coral-ink); font: 600 16px/1 var(--font-display); }
.avatar--ring { box-shadow: 0 0 0 2px var(--paper-raised), 0 0 0 5px var(--coral); }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px var(--paper-raised); }
.avatar--lg { width: 56px; height: 56px; font-size: 21px; }
.avatar.a2 { background: var(--ribbon-soft); color: var(--ribbon); }
.avatar.a3 { background: var(--mint-soft); color: var(--mint); }
.avatar.a4 { background: var(--paper-sunk); color: var(--ink); font: 700 12px/1 var(--font-sans); }
.avatar.a-sun { background: var(--sun-soft); color: var(--sun-ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: var(--radius-full); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.badge--neutral { background: var(--paper-sunk); color: var(--ink); }
.badge--coral { background: var(--coral-soft); color: var(--coral-ink); }
.badge--ribbon { background: var(--ribbon-soft); color: var(--ribbon); }
.badge--sun { background: var(--sun-soft); color: var(--sun-ink); }

/* Sections */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 128px 0; } }

.problem { background: var(--paper-raised); border-block: 1px solid var(--line); }
.problem__list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
.problem__list { border-top: 1px solid var(--line); }
.problem__list li { padding: 28px 0 0; }
.problem__list p { font: 500 clamp(22px, 3vw, 36px)/1.25 var(--font-display); max-width: 34ch; }
.problem__list li:nth-child(2) p { margin-left: clamp(0px, 8vw, 120px); }
.problem__list li:nth-child(3) p { margin-left: clamp(0px, 16vw, 240px); color: var(--ink-muted); }

.steps { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper-raised); border-radius: var(--radius-xl); padding: 32px 28px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.step h3 { font: 600 24px/1.15 var(--font-display); }
.step p { color: var(--ink-muted); font-size: 16px; }
.mini { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 8px; }
.mini--link { background: var(--paper-sunk); border-radius: var(--radius-full); padding: 6px 6px 6px 16px; margin-top: auto; }
.mini__field { flex: 1; font-size: 14px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__btn { background: var(--ribbon); color: var(--on-ribbon); font: 600 14px/1 var(--font-display); padding: 10px 14px; border-radius: var(--radius-full); }
.mini--share .avatar + .avatar { margin-left: -6px; }
.mini__txt { font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-left: 6px; }

.who .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .who .wrap { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } .who .title-xl { position: sticky; top: 120px; } }
.who__list { display: grid; }
.who__row { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.who__row h3 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--font-display); }
.who__row p { color: var(--ink-muted); max-width: 46ch; }

.group { background: var(--sun-soft); }
.group__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .group__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23127a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.group__visual { display: grid; place-items: center; }
.quota { width: min(400px, 100%); background: var(--paper-raised); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-float); transform: rotate(1.5deg); }
.quota__big { font: 600 64px/1 var(--font-display); margin-top: 20px; font-variant-numeric: tabular-nums; }
.quota__big small { font-size: 22px; color: var(--ink-muted); font-weight: 500; }
.quota__sub { color: var(--ink-muted); margin-top: 8px; font-size: 15px; }
.quota__row { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.stack { display: flex; }
.stack .avatar + .avatar { margin-left: -6px; }
.quota__paid { display: block; }
.quota__fine { font-size: 13px; color: var(--ink-muted); text-align: center; margin-top: 12px; }

.night { background: var(--paper); color: var(--ink); }
.night__grid { display: grid; gap: 40px; align-items: center; }
.night__mark { width: 160px; height: auto; }
@media (min-width: 960px) { .night__grid { grid-template-columns: 280px 1fr; gap: 80px; } .night__mark { width: 240px; } }

.santa__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .santa__grid { grid-template-columns: 1.2fr .8fr; gap: 80px; } }
.drawn { display: grid; justify-items: center; gap: 12px; background: var(--paper-raised); border-radius: var(--radius-xl); padding: 40px 32px; text-align: center; box-shadow: var(--shadow-float); transform: rotate(-1.5deg); }
.drawn .avatar--lg { width: 72px; height: 72px; font-size: 26px; }
.drawn__name { font: 600 clamp(30px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.01em; }
.drawn__fine { color: var(--ink-muted); max-width: 30ch; }

.free { padding-block: 72px; }
.free__inner { text-align: center; display: grid; justify-items: center; }
.free__inner .title-xl { max-width: 20ch; }

.faq__inner { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font: 600 clamp(18px, 2vw, 22px)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-sunk); font-size: 20px; transition: transform .25s var(--ease-out); }
.faq summary:hover::after { background: var(--line); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); padding: 0 48px 24px 0; max-width: 62ch; }

.final { background: var(--ribbon-soft); text-align: center; }
.final__inner { display: grid; justify-items: center; }
.final__icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 20px 40px -12px #08113a59; }

.footer { padding: 48px 0 56px; font-size: 14px; color: var(--ink-muted); }
.footer__inner { display: grid; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--ink); }
.footer__fine { font-size: 13px; max-width: 60ch; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr; align-items: center; } .footer nav { justify-content: flex-end; } .footer__fine { grid-column: 1 / -1; } }

/* Reveal on scroll (only when JS marks the page ready) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strike::after { transform: rotate(-4deg) scaleX(1); }
  .js .reveal { opacity: 1; transform: none; }
  .phone--tilt, .quota, .drawn { transform: none; }
}

/* QR to /scarica: only on computers (data-platform comes from site.js) */
.qr { display: none; margin: 28px 0 0; padding: 10px 20px 10px 10px; align-items: center; gap: 16px; width: fit-content; background: var(--paper-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
[data-platform="desktop"] .qr { display: flex; }
.qr img { width: 88px; height: 88px; padding: 6px; background: #fff; border-radius: 10px; }
.qr figcaption { font-size: 15px; line-height: 1.4; color: var(--ink-muted); max-width: 20ch; text-align: left; }

/* Text pages: privacy, termini, cancella-dati, info, 404 */
.doc { padding: 48px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 600 clamp(36px, 6vw, 56px)/1.04 var(--font-display); letter-spacing: -.015em; }
.doc__date { margin-top: 12px; font-size: 15px; color: var(--ink-muted); }
.doc h2 { font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display); margin-top: 48px; }
.doc h3 { font: 600 19px/1.3 var(--font-display); margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin: 14px 0 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc a:not(.btn) { color: var(--ribbon); font-weight: 600; text-underline-offset: 3px; }
.doc strong { font-weight: 650; }
.doc .lead { margin-top: 20px; }
.doc .btn { height: 56px; padding: 0 28px; font-size: 17px; margin-top: 32px; }
.todo { background: var(--sun-soft); color: var(--sun-ink); padding: 0 4px; border-radius: 4px; font-weight: 650; }
