:root {
  --crema: #FAFAF7;
  --nero: #1A1A1A;
  --arancio: #E8440A;
  --verde: #2D7A3A;
  --blu: #1666D6;
  --grigio: #666666;
  --divider: rgba(26,26,26,0.10);
  --pill-bg: rgba(26,26,26,0.06);
  --card-border: rgba(26,26,26,0.08);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-card: 20px;
  --radius-pill: 100px;

  --pad: 24px;
  --main-max: 640px;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--nero);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* subtle grain so the crema doesn't feel flat */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--arancio);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.wordmark.small { font-size: 18px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.topbar-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--crema);
  background: var(--nero);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

main { max-width: var(--main-max); margin: 0 auto; overflow: visible; }

section { padding: 56px var(--pad); position: relative; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  overflow-wrap: break-word;
}

/* ================= HERO ================= */
.hero {
  padding-top: 48px;
  padding-bottom: 32px;
  overflow: visible;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--grigio);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(32px, 9.5vw, 52px);
  line-height: 1.08;
  color: var(--nero);
}
.hero h1 .accent { color: var(--arancio); }

.lede {
  font-size: 18px;
  color: var(--nero);
  opacity: 0.82;
  margin: 24px 0 32px;
  max-width: 46ch;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  color: var(--crema);
  background: var(--arancio);
  padding: 18px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232,68,10,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 4px 10px rgba(232,68,10,0.24); }

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--grigio);
}

/* --- Hero phone preview cluster --- */
.hero-preview {
  position: relative;
  height: 220px;
  margin-top: 40px;
}

.preview-phone { position: absolute; will-change: transform; }
.preview-phone--a { left: 4%;  top: 0; }
.preview-phone--b { right: 2%; top: 30px; }
.preview-phone--c { left: 38%; top: 70px; z-index: -1; opacity: 0.85; }

.tilt { transform: rotate(0deg); }
.tilt--left      { transform: rotate(-9deg); }
.tilt--right     { transform: rotate(7deg); }
.tilt--left-soft { transform: rotate(-4deg); }

.float           { animation: floaty 5.5s ease-in-out infinite; }
.float--offset   { animation-delay: -2.4s; animation-duration: 6.2s; }
.float--slow     { animation-duration: 7.4s; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none !important; }
}

/* ---------- Phone component ---------- */
.phone {
  position: relative;
  width: 150px;
  height: 300px;
  background: var(--nero);
  border-radius: 34px;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 16px 30px rgba(26,26,26,0.18);
}
.phone--lg  { width: 170px; height: 340px; }

.phone-screen {
  height: 100%;
  width: 100%;
  border-radius: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(250,250,247,0.06) 0 2px, transparent 2px 10px),
    var(--nero);
  border: 1px dashed rgba(250,250,247,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
}
.phone-placeholder-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--crema);
}
.phone-placeholder-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(250,250,247,0.55);
}

.phone-ios .phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: var(--nero);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-ios .phone-home-indicator {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: rgba(250,250,247,0.4);
}
.phone-android { border-radius: 20px; }
.phone-android .phone-screen { border-radius: 12px; }
.phone-android .phone-camera-dot {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,250,247,0.35);
  z-index: 2;
}

/* --- standalone floating cards for the hero preview (no device chrome) --- */
.mini-card {
  width: 128px;
  background:
    repeating-linear-gradient(135deg, rgba(250,250,247,0.06) 0 2px, transparent 2px 10px),
    var(--nero);
  border: 1px dashed rgba(250,250,247,0.22);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 16px 30px rgba(26,26,26,0.18);
}
.mini-card--water { padding: 18px 16px; }
.mini-card--sm { width: 112px; padding: 14px; gap: 6px; }

/* --- mini "screen content" flourishes for hero previews --- */
.ph-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  color: var(--nero);
  background: var(--crema);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.ph-tag--blu  { background: var(--blu); color: var(--crema); }
.ph-tag--dark { background: var(--arancio); color: var(--crema); }

.ph-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(250,250,247,0.28);
  align-self: flex-start;
}
.ph-line--w70 { width: 70%; }
.ph-line--w60 { width: 60%; }
.ph-line--w40 { width: 40%; }
.ph-line--light { background: rgba(250,250,247,0.5); }

.ph-check {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  color: var(--verde);
  background: rgba(45,122,58,0.18);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

.ph-bottle {
  width: 34px;
  height: 60px;
  border: 2px solid rgba(250,250,247,0.4);
  border-radius: 10px 10px 6px 6px;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}
.ph-bottle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: var(--blu);
}

/* ================= HOW IT WORKS ================= */
.how { border-top: 1px solid var(--divider); }

.how h2 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 40px;
}
.how-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 16px;
  color: var(--grigio);
  letter-spacing: 0;
}

.step-grid { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--arancio);
  flex-shrink: 0;
  width: 44px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--nero);
  opacity: 0.78;
  font-size: 15px;
}

/* ================= MOCKUP SHOWCASE ================= */
.mockups { border-top: 1px solid var(--divider); overflow: visible; }
.mockups h2 { font-size: 30px; margin-bottom: 12px; }
.mockups-note {
  font-size: 14px;
  color: var(--grigio);
  margin: 0 0 48px;
  max-width: 50ch;
}

.phone-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0 24px;
}

.phone-slot { will-change: transform; }
.phone-slot--b { margin-top: 46px; }

/* ================= WHY ================= */
.why { border-top: 1px solid var(--divider); }
.why h2 { font-size: 28px; margin-bottom: 18px; }
.why p {
  font-size: 16px;
  color: var(--nero);
  opacity: 0.8;
  margin: 0;
  max-width: 54ch;
}

/* ================= FORM ================= */
.form-section {
  border-top: 1px solid var(--divider);
  background: var(--nero);
  color: var(--crema);
  border-radius: 28px 28px 0 0;
  margin-top: 0;
}
.form-section h2 {
  font-size: 30px;
  color: var(--crema);
  margin-bottom: 10px;
}
.form-section .how-sub { color: rgba(250,250,247,0.55); }
.form-intro {
  color: rgba(250,250,247,0.65);
  font-size: 15px;
  margin: 0 0 28px;
}

.segment {
  display: flex;
  background: rgba(250,250,247,0.08);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 32px;
}
.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(250,250,247,0.6);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.segment-btn.is-active {
  background: var(--arancio);
  color: var(--crema);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,250,247,0.7);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--crema);
  background: rgba(250,250,247,0.06);
  border: 1px solid rgba(250,250,247,0.16);
  border-radius: 14px;
  padding: 14px 16px;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(250,250,247,0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--arancio);
}

/* file uploader */
.file-drop { position: relative; }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.field .file-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 22px 16px;
  border: 1.5px dashed rgba(250,250,247,0.26);
  border-radius: 14px;
  background: rgba(250,250,247,0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:has(input:focus-visible) .file-drop-label,
.file-drop.is-dragover .file-drop-label {
  border-color: var(--arancio);
  background: rgba(232,68,10,0.08);
}
.file-drop-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--crema);
}
.file-drop-sub {
  font-size: 12px;
  color: rgba(250,250,247,0.45);
}
.file-drop.has-file .file-drop-main { color: var(--arancio); }

.btn-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--arancio);
}

.form-fineprint {
  text-align: center;
  font-size: 12px;
  color: rgba(250,250,247,0.4);
  margin: 16px 0 0;
}

/* consent checkboxes */
.field-consent { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--arancio);
}
.consent-label span {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(250,250,247,0.65);
}
.consent-label a { color: var(--crema); text-decoration: underline; }

/* ================= Footer ================= */
.site-footer {
  background: var(--nero);
  color: rgba(250,250,247,0.5);
  text-align: center;
  padding: 32px var(--pad) 48px;
}
.site-footer p {
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.footer-links a { color: rgba(250,250,247,0.6); }

/* =====================================================================
   BREAKPOINT 1 — TABLET (>= 768px)
   ===================================================================== */
@media (min-width: 768px) {
  :root { --main-max: 700px; --pad: 40px; }

  section { padding: 72px var(--pad); }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    padding-top: 64px;
  }
  .hero-copy { min-width: 0; }
  .hero h1 { font-size: clamp(32px, 5.2vw, 48px); }
  .hero-preview { height: 320px; margin-top: 0; }
  .preview-phone--a { left: 10%; }
  .preview-phone--b { right: 4%; top: 60px; }
  .preview-phone--c { left: 40%; top: 110px; }
  .mini-card { width: 150px; padding: 20px; }
  .mini-card--sm { width: 132px; padding: 16px; }

  .lede { font-size: 19px; }

  .how h2, .mockups h2, .form-section h2 { font-size: 36px; }
  .why h2 { font-size: 32px; }

  .step-grid { flex-direction: row; gap: 28px; }
  .step { flex-direction: column; gap: 14px; padding: 0; border-bottom: none; flex: 1; }
  .step-num { width: auto; }

  .phone--lg { width: 190px; height: 380px; }
  .phone-slot--b { margin-top: 60px; }

  .form-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
  .form-intro-col { position: sticky; top: 100px; }
  .form-intro { max-width: 34ch; }

  .form-section { border-radius: 36px 36px 0 0; }
}

/* =====================================================================
   BREAKPOINT 2 — DESKTOP (>= 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --main-max: 1080px; --pad: 56px; }

  section { padding: 96px var(--pad); }

  .hero { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 84px; }
  .hero-preview { height: 400px; }
  .preview-phone--a { left: 12%; top: -10px; }
  .preview-phone--b { right: 8%; top: 70px; }
  .preview-phone--c { left: 42%; top: 130px; }
  .mini-card { width: 172px; padding: 22px; }
  .mini-card--sm { width: 150px; padding: 18px; }

  .hero h1 { font-size: 58px; }
  .lede { font-size: 20px; }

  .how h2, .mockups h2, .form-section h2 { font-size: 44px; }
  .why h2 { font-size: 38px; }
  .why p { font-size: 18px; }

  .step-grid { gap: 40px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 16px; }

  .phone-row { gap: 48px; padding: 24px 0 32px; }
  .phone--lg { width: 220px; height: 440px; }
  .phone-slot--b { margin-top: 80px; }

  .form-inner { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .form-section { padding-top: 110px; padding-bottom: 110px; }
}
