@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #F3F4EF;
  --surface: #FFFFFF;
  --text: #121614;
  --muted: #5B635E;
  --border: #DCDFD8;
  --green: #1F7A4D;
  --green-soft: #E3F1E9;
  --amber: #8A4A0C;
  --dark: #0E1210;
  --dark-border: #2A332E;
  --dark-muted: #A9B2AC;
  --mint: #5FD19B;
  --head: "Space Grotesk", system-ui, sans-serif;
  --gut: clamp(16px, 5vw, 64px);
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: #145236; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .brand, .btn, .eyebrow, .step__tag, summary { font-family: var(--head); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .75rem 1rem; background: var(--text); color: #fff; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100%, 70rem + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* Header */
.top { position: sticky; top: .5rem; z-index: 20; padding: .5rem var(--gut) 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; max-width: 70rem; padding: .35rem .45rem .35rem .6rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(243, 244, 239, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(18, 22, 20, .08); }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.375rem; }
.brand img { border-radius: 10px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: .875rem; }
.top nav a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: .2rem; color: var(--text); text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }
.top nav { margin-left: auto; margin-right: .75rem; }
@media (min-width: 48rem) { .top nav { font-size: .9375rem; } .top nav a:not(.btn) { padding-inline: .5rem; } }
@media (max-width: 47.99rem) {
  .top nav { display: none; }
  .brand { font-size: 1.2rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 14px; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn--dark { background: var(--text); color: #fff; border-radius: 999px; min-height: 44px; }
.btn--dark:hover { color: #fff; background: #2a312d; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:disabled { opacity: .7; cursor: default; }
.btn--mint { background: var(--mint); color: var(--dark); }
.btn--mint:hover { color: var(--dark); background: #7fddb2; }

/* Hero */
.hero { padding-block: clamp(2rem, 7vw, 6.5rem); }
.hero__in { display: grid; gap: 3rem; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; scroll-margin-top: 1rem; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .9rem; border-radius: 999px; background: var(--green-soft); color: #17613B; font: 700 .875rem/1.3 var(--head); }
h1 { font-size: clamp(2.5rem, 9.5vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; overflow-wrap: break-word; }
.amber { color: var(--amber); }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 36rem; }
.waitlist { display: grid; gap: .75rem; max-width: 33rem; }
.fields { display: grid; gap: .6rem; }
input[type="email"] { width: 100%; min-width: 0; min-height: 52px; padding: 0 1.1rem; border: 1px solid #8D958F; border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; }
input::placeholder { color: var(--muted); opacity: 1; }
.consent { display: flex; align-items: flex-start; gap: .75rem; min-height: 44px; font-size: .875rem; color: var(--muted); }
.consent input { flex: none; width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--green); }
.small { font-size: .875rem; color: var(--muted); }
.small a { display: inline-flex; align-items: center; min-height: 44px; }
#waitlist-status { margin-top: -.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .25rem 1rem .25rem .5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: 700 .875rem var(--head); box-shadow: 0 2px 8px rgba(18, 22, 20, .05); }
.chips li svg { flex: none; box-sizing: content-box; padding: 5px; border-radius: 50%; background: var(--green-soft); color: var(--green); transition: background-color .2s, color .2s, transform .3s; }
.chips li:hover svg { background: var(--green); color: #fff; transform: rotate(-8deg) scale(1.08); }
.hero__media { display: flex; justify-content: center; }
@media (min-width: 48rem) {
  .fields { grid-template-columns: 1fr auto; }
  .hero__in { grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
}

/* Phone placeholder (to be replaced by real screenshots) */
.phone { width: 100%; max-width: 17.5rem; border: 9px solid var(--text); border-radius: 42px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px rgba(18, 22, 20, .16); }
.phone--hero { max-width: 19rem; box-shadow: 0 30px 80px rgba(18, 22, 20, .22); }
.phone img { width: 100%; height: auto; }
.shot { aspect-ratio: 603 / 1311; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem; background: var(--bg); color: var(--muted); text-align: center; font-size: .9375rem; }
.shot span:last-child { font: 700 1rem var(--head); color: var(--text); }

/* Sections */
.sec { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.sec--white { background: var(--surface); }
.sec__head { display: grid; gap: .75rem; max-width: 45rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
h2 { font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -.01em; }
h3 { font-size: 1.375rem; line-height: 1.2; }
.cards { display: grid; gap: 1.25rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.5rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.card p { color: var(--muted); }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Steps */
.step { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--border); }
.step__text { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.step__tag { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step__tag span { font-size: .875rem; color: var(--green); }
.step h3 { font-size: clamp(1.625rem, 4vw, 2.25rem); line-height: 1.15; }
.points { display: grid; gap: .65rem; margin-top: .25rem; }
.points li { position: relative; padding-left: 1.25rem; line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.step__media { display: flex; justify-content: center; }
@media (min-width: 56rem) {
  .step { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .step:nth-child(even) .step__media { order: -1; }
}

/* Accordions */
.acc { display: grid; gap: .75rem; }
details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.sec--white details { background: var(--bg); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .75rem 1.25rem; font-size: 1.125rem; font-weight: 700; cursor: pointer; list-style: none; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details > p { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--border); color: var(--muted); }
dl { padding: 0 1.25rem .75rem; border-top: 1px solid var(--border); }
dl > div { display: grid; gap: .25rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
dl > div:last-child { border-bottom: 0; }
dt { font-weight: 700; font-family: var(--head); font-size: .9375rem; }
dd { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 40rem) { dl > div { grid-template-columns: 14rem 1fr; } }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

/* Contact + footer */
.sec--dark { background: var(--dark); color: #F1F3EF; }
.sec--dark .eyebrow { color: var(--mint); }
.sec--dark .lead { color: var(--dark-muted); }
.contact { display: grid; gap: 3rem; align-items: start; }
.contact__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.social { display: grid; gap: .8rem; }
.social p { font: 700 1rem var(--head); }
.social a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; min-height: 52px; padding: .5rem 1.1rem; border: 1px solid var(--dark-border); border-radius: 14px; color: #F1F3EF; text-decoration: none; }
.social a:hover { border-color: var(--mint); color: #F1F3EF; }
.social a span:last-child { color: var(--dark-muted); }
@media (min-width: 52rem) { .contact { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.foot { background: var(--dark); border-top: 1px solid var(--dark-border); color: var(--dark-muted); font-size: .875rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 .5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .5rem; color: var(--dark-muted); }
.foot a:hover { color: #fff; }
.foot small { flex-basis: 100%; font-size: .8125rem; }
.sec--dark :focus-visible, .foot :focus-visible { outline-color: var(--mint); }

/* Privacy page */
.policy { max-width: 45rem; padding-block: 2.5rem; }
.policy > a { display: inline-flex; align-items: center; min-height: 44px; }
.policy h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-block: .5rem 1rem; }
.policy h2 { font-size: 1.375rem; margin-top: 1.75rem; }
.policy p { margin-top: .5rem; color: var(--muted); }

/* Telefono sticky (schermi larghi, con JS) */
.sticky-phone { display: none; }
.sticky-phone .phone { position: relative; width: min(17.5rem, calc((100vh - 9rem) * 600 / 1304)); aspect-ratio: 600 / 1304; max-width: none; }
.sticky-phone img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.sticky-phone img.on { opacity: 1; }
@media (min-width: 62rem) {
  .js .steps-wrap { display: grid; grid-template-columns: 1fr minmax(0, 20rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .js .sticky-phone { display: flex; justify-content: center; position: sticky; top: calc(50vh - 50% / 2); top: max(5.5rem, calc(50vh - (min(17.5rem, (100vh - 9rem) * 600 / 1304) * 1304 / 600) / 2)); }
  .js .step { grid-template-columns: 1fr; min-height: 75vh; align-content: center; }
  .js .step__media { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sticky-phone img { transition: none; } }

/* Ogni funzione: tab + card */
.sec--line { border-top: 1px solid var(--border); }
.tabs { display: grid; gap: 1.25rem; }
.tablist { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.tablist button { flex: none; display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #3E4640; font: 700 .9375rem/1.25 var(--head); cursor: pointer; text-align: left; white-space: nowrap; }
.tablist .n { flex: none; width: 1.4rem; font-size: .8125rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.tablist button[aria-selected="true"] { background: var(--surface); border-color: var(--border); color: var(--text); }
.tablist button[aria-selected="true"] .n { color: var(--green); }
.fgrid { display: grid; gap: 1rem; align-items: stretch; }
.fcard { padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.fcard h4 { margin: 0 0 .4rem; font: 700 1.0625rem var(--head); }
.fcard p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.ptitle { display: none; margin-bottom: 1rem; }
.tabs [role="tabpanel"] + [role="tabpanel"] { margin-top: 2rem; }
.js .tabs [role="tabpanel"] + [role="tabpanel"] { margin-top: 0; }
.js .ptitle { display: none; }
html:not(.js) .ptitle { display: block; }
html:not(.js) .tablist { display: none; }
@media (min-width: 56rem) {
  .tabs { grid-template-columns: 17.5rem 1fr; gap: 2rem; }
  .tablist { flex-direction: column; overflow: visible; }
  .tablist button { width: 100%; white-space: normal; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
}

/* Box lista d'attesa */
.wlbox { display: grid; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.wlbox__text { display: grid; gap: .75rem; align-content: start; }
@media (min-width: 52rem) { .wlbox { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; } }

/* Perché Bucktrail: bento */
.why__head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.why__head h2 { margin-top: .75rem; max-width: 18ch; }
.why__head .lead { max-width: 28rem; }
.bento { display: grid; gap: 1rem; }
.bcard { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 3.5vw, 2.25rem); border: 1px solid var(--border); border-radius: 28px; background: var(--bg); transition: transform .25s, box-shadow .25s; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(18, 22, 20, .1); }
.bcard h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.bcard p { color: var(--muted); font-size: .9375rem; line-height: 1.55; max-width: 34rem; }
.bcard--curve { min-height: 20rem; }
.curve { width: 100%; max-width: 30rem; height: auto; margin: auto 0 0; }
.bcard--dark { background: var(--dark); border-color: var(--dark); color: #F1F3EF; }
.bcard--dark p { color: var(--dark-muted); }
.bcard .price { font: 700 clamp(3rem, 7vw, 4.5rem)/1 var(--head); color: var(--mint); letter-spacing: -.02em; max-width: none; }
.price span { font-size: .6em; margin-inline: .05em; }
.bcard--light { background: var(--surface); }
.lock { color: var(--text); }
.curve__line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .bento:not(.in) .curve__line { stroke-dashoffset: 1; }
.js .bento:not(.in) .curve__dots, .js .bento:not(.in) .curve circle { opacity: 0; }
.curve__line { transition: stroke-dashoffset 1.3s ease-out; }
.curve__dots, .curve circle { transition: opacity .6s 1.1s; }
@media (min-width: 52rem) {
  .why__head { grid-template-columns: 1.3fr 1fr; }
  .bento { grid-template-columns: 1.45fr 1fr; grid-template-rows: auto auto; }
  .bcard--curve { grid-row: 1 / 3; min-height: 26rem; }
  .bcard--dark { min-height: 14rem; }
}
@media (prefers-reduced-motion: reduce) { .bcard, .curve__line, .curve__dots, .curve circle { transition: none; } .bcard:hover { transform: none; } }

/* Bottoni e chip: movimento */
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 22, 20, .18); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn--green:hover { background: #17613B; color: #fff; box-shadow: 0 10px 26px rgba(31, 122, 77, .4); }
.hero .btn--green::after { content: "\2192"; display: inline-block; transition: transform .2s ease; }
.hero .btn--green:hover::after { transform: translateX(4px); }
.chips li { transition: transform .2s ease, border-color .2s, background-color .2s; }
.chips li:hover { transform: translateY(-2px); border-color: var(--green); background: var(--green-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chips li { animation: rise .5s ease both; }
.chips li:nth-child(2) { animation-delay: .08s; } .chips li:nth-child(3) { animation-delay: .16s; } .chips li:nth-child(4) { animation-delay: .24s; }
.hero .btn--green { animation: rise .5s .05s ease both; }
@media (prefers-reduced-motion: reduce) { .btn, .chips li, .hero .btn--green { transition: none; animation: none; } .btn:hover, .chips li:hover { transform: none; } }

.social .soc { display: inline-flex; align-items: center; gap: .7rem; }
