/* OurDaily landing. Mobile first. No frameworks, no web fonts, no external requests. */

:root {
  /* Hex first, modern space second: the second declaration wins where it is understood. */
  --ink: #1e2321;
  --ink: oklch(0.25 0.015 160);
  --ink_soft: #4a5450;
  --ink_soft: oklch(0.46 0.015 165);
  --paper: #f7f5f0;
  --paper: oklch(0.97 0.008 95);
  --surface: #ffffff;
  --surface: oklch(1 0 0);
  --brand: #123f38;
  --brand: oklch(0.32 0.055 172);
  --brand_deep: #0c2e29;
  --brand_deep: oklch(0.25 0.045 172);
  --accent: #1f6558;
  --accent: oklch(0.45 0.075 172);
  --accent_soft: #d9eae5;
  --accent_soft: oklch(0.92 0.028 172);
  --line: #e2ded6;
  --line: oklch(0.89 0.008 95);
  --on_brand: #f3f7f5;
  --on_brand: oklch(0.96 0.012 172);
  --on_brand_soft: #b9d1ca;
  --on_brand_soft: oklch(0.82 0.035 172);

  --step_0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step_1: clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step_2: clamp(1.6rem, 1.44rem + 0.75vw, 2.1rem);
  --step_3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step_4: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);

  --gap: clamp(1rem, 0.7rem + 1.5vw, 1.75rem);
  --bleed: clamp(1.15rem, 0.6rem + 2.5vw, 3rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 20px;
  --radius_lg: 28px;

  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z_sticky: 20;
  --z_header: 30;
  --z_dialog: 50;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1ef;
    --ink: oklch(0.94 0.008 165);
    --ink_soft: #adbab5;
    --ink_soft: oklch(0.76 0.015 165);
    --paper: #101413;
    --paper: oklch(0.17 0.012 172);
    --surface: #181e1d;
    --surface: oklch(0.22 0.014 172);
    --brand: #0f3630;
    --brand: oklch(0.28 0.05 172);
    --brand_deep: #0a2622;
    --brand_deep: oklch(0.22 0.04 172);
    --accent: #7fd0bd;
    --accent: oklch(0.8 0.09 172);
    --accent_soft: #1d3d37;
    --accent_soft: oklch(0.3 0.04 172);
    --line: #29312f;
    --line: oklch(0.3 0.012 172);
  }
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step_0);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 800;
}

h1 { font-size: var(--step_4); }
h2 { font-size: var(--step_3); }
h3 { font-size: var(--step_1); letter-spacing: -0.01em; }

p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--bleed);
}

.stack > * + * { margin-top: var(--gap); }

.lede {
  font-size: var(--step_1);
  color: var(--ink_soft);
  line-height: 1.5;
}

.micro { font-size: 0.86rem; color: var(--ink_soft); }

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  z-index: var(--z_dialog);
  background: var(--accent);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 12px;
}
.skip:focus { inset-inline-start: 12px; top: 12px; }

.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: var(--z_header);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top_inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand svg { width: 26px; height: 26px; color: var(--accent); }

.nav { display: none; }

.lang_field { display: inline-flex; }
.lang_field select {
  font: inherit;
  font-size: 0.9rem;
  min-height: 44px;
  padding: 0 34px 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231f6558' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 12px center / 12px;
  color: var(--ink);
  appearance: none;
}

/* Hero */

.hero {
  background: var(--brand);
  color: var(--on_brand);
  padding-block: clamp(2.25rem, 1.5rem + 5vw, 4.5rem) clamp(2rem, 1.2rem + 4vw, 3.5rem);
  overflow: hidden;
}

.hero h1 { color: var(--on_brand); }
.hero p { color: var(--on_brand_soft); }

.hero_grid { display: grid; gap: clamp(2rem, 1rem + 6vw, 3.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--on_brand) 14%, transparent);
  color: var(--on_brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
}
.eyebrow svg { width: 15px; height: 15px; }

.hero_actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero_copy.stack > .store_badges { margin-top: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); }

.hero_shot {
  position: relative;
  justify-self: center;
  width: min(292px, 72vw);
  margin-bottom: 0;
  filter: drop-shadow(0 26px 50px rgb(0 0 0 / 0.35));
}
.hero_shot img {
  border-radius: 34px;
  border: 1px solid color-mix(in oklab, var(--on_brand) 22%, transparent);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--on_brand_soft);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; flex: none; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.button:active { transform: translateY(1px); }
.button svg { width: 19px; height: 19px; }

.button.solid {
  /* Sits on the deep brand panel in both themes, so it never follows the page paper. */
  background: #f3f7f5;
  color: #0c2e29;
}
.button.solid:hover { background: #dceae5; }

.button.outline {
  background: transparent;
  color: var(--on_brand);
  border-color: color-mix(in oklab, var(--on_brand) 40%, transparent);
}
.button.outline:hover { background: color-mix(in oklab, var(--on_brand) 10%, transparent); }

.button.brand { background: var(--accent); color: var(--paper); }
.button.brand:hover { background: color-mix(in oklab, var(--accent) 88%, black); }

.button.quiet { background: var(--accent_soft); color: var(--accent); }

/* Sections */

.section { padding-block: var(--section); }
.section_head {
  /* Titolo e occhiello restano su una riga sola dove lo schermo lo permette. */
  max-width: none;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.section_head h2 { max-width: 22ch; }
.section_head p { margin-top: 12px; color: var(--ink_soft); max-width: 82ch; }

.friction { display: grid; gap: 0; }
.friction > div {
  padding-block: clamp(1.1rem, 0.8rem + 1.5vw, 1.8rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.friction > div:last-child { border-bottom: 1px solid var(--line); }
.friction h3 { display: flex; align-items: baseline; gap: 10px; }
.friction h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  translate: 0 -2px;
}
.friction p { color: var(--ink_soft); }

.feature {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature_body { display: grid; gap: 10px; }
.feature_body p { color: var(--ink_soft); }
.feature_shot {
  justify-self: center;
  width: min(264px, 70vw);
  filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.16));
}
.feature_shot img { border-radius: 30px; border: 1px solid var(--line); }

.pair {
  display: grid;
  gap: var(--gap);
  align-items: stretch;
  /* Stessa altezza anche quando la colonna e una sola, sui telefoni. */
  grid-auto-rows: 1fr;
}
.pair > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 0.8rem + 1.5vw, 1.8rem);
  display: grid;
  gap: 10px;
}
.pair p { color: var(--ink_soft); }

/* Comparison */

.table_scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 30rem; }
caption { text-align: left; padding: 0 0 12px; color: var(--ink_soft); font-size: 0.9rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.85rem; font-weight: 700; color: var(--ink_soft); }
td.yes, td.no, th.center { text-align: center; width: 6.5rem; }
td.yes { color: var(--accent); }
td.no { color: var(--ink_soft); }
.mark { width: 22px; height: 22px; }

/* Pricing */

.plans { display: grid; gap: var(--gap); }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius_lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: grid;
  gap: 10px;
  align-content: start;
}
.plan .amount {
  font-size: var(--step_3);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan .unit { font-size: 0.9rem; color: var(--ink_soft); }
.plan p { color: var(--ink_soft); }
.plan.best {
  background: var(--brand);
  border-color: var(--brand_deep);
  color: var(--on_brand);
}
.plan.best p, .plan.best .unit { color: var(--on_brand_soft); }
.plan.best .amount { color: var(--on_brand); }
.tag {
  justify-self: start;
  background: var(--accent_soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.plan.best .tag { background: color-mix(in oklab, var(--on_brand) 18%, transparent); color: var(--on_brand); }

/* FAQ */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  rotate: 45deg;
  translate: 0 -3px;
  flex: none;
  transition: rotate 0.2s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq p { color: var(--ink_soft); padding-bottom: 18px; }

/* Closing band */

.closing {
  background: var(--brand_deep);
  color: var(--on_brand);
  border-radius: var(--radius_lg);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.closing h2 { color: var(--on_brand); }
.closing .store_badges { margin-top: 6px; }
.closing p {
  color: var(--on_brand_soft);
  /* Come la firma nel piede: una riga sola dove ci sta. */
  max-width: none;
}

/* Footer */

.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot_inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.foot_inner p {
  /* La firma resta su una riga sola dove c'e spazio, va a capo solo sui telefoni stretti. */
  max-width: none;
  text-wrap: pretty;
}
.foot_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.foot_links a { color: var(--ink_soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot_links a:hover { color: var(--accent); }

.powered {
  font-size: 0.9rem;
  color: var(--ink_soft);
  text-align: center;
  width: 100%;
  margin-top: 6px;
}
.powered a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.powered a:hover { color: var(--accent); }


/* Motion, one orchestrated entrance, never gating visibility */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s var(--ease) backwards;
  }
  .rise:nth-child(2) { animation-delay: 0.06s; }
  .rise:nth-child(3) { animation-delay: 0.12s; }
  .hero_shot { animation: rise 0.9s var(--ease) 0.18s backwards; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Wider screens */

@media (min-width: 40rem) {
  .hero_actions { flex-direction: row; flex-wrap: wrap; }
  .hero_actions .button { min-width: 15rem; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  .pair { grid-template-columns: 1fr 1fr; }
  .friction { grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); }
  .friction > div { border-bottom: 1px solid var(--line); }
}

@media (min-width: 60rem) {
  .nav {
    display: flex;
    gap: 22px;
    margin-inline-end: 18px;
  }
  .nav a {
    text-decoration: none;
    color: var(--ink_soft);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav a:hover { color: var(--accent); }

  .hero_grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero_shot { width: min(320px, 32vw); }
  .hero_copy { padding-bottom: 0; }

  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(even) .feature_shot { order: -1; }

  }

/* Cookie notice. The site sets no profiling cookie, so this informs and leaves. */

.cookie_notice {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z_dialog);
  padding: 14px var(--bleed) calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px rgb(0 0 0 / 0.12);
}
.cookie_notice[hidden] { display: none; }
.cookie_inner {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.cookie_head { font-weight: 700; margin-bottom: 4px; }
.cookie_actions { display: grid; gap: 8px; }
.cookie_actions .button { min-height: 48px; }

@media (min-width: 48rem) {
  .cookie_inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie_actions { grid-auto-flow: column; }
}

/* Motion layer. Every initial state below lives behind html.js_motion, so a page
   without script, or with reduced motion asked for, still ships fully visible. */

.hero { position: relative; }

.hero_glow {
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -20%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--accent) 42%, transparent), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

html.js_motion .hero_glow { animation: drift 18s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 4%, 0) scale(1.12); }
}

html.js_motion [data-reveal],
html.js_motion [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js_motion [data-reveal].in_view,
html.js_motion [data-reveal-group] > .in_view {
  opacity: 1;
  transform: none;
}

html.js_motion [data-reveal-group] > *:nth-child(2) { transition-delay: 0.08s; }
html.js_motion [data-reveal-group] > *:nth-child(3) { transition-delay: 0.16s; }
html.js_motion [data-reveal-group] > *:nth-child(4) { transition-delay: 0.24s; }
html.js_motion [data-reveal-group] > *:nth-child(5) { transition-delay: 0.32s; }

html.js_motion .hero_shot { will-change: transform; }

.top.scrolled {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
  border-bottom-color: color-mix(in oklab, var(--line) 60%, var(--accent));
}

.card_hover, .plan, .pair > div, .faq details {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan:hover, .pair > div:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--line) 40%, var(--accent));
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.07);
}

.faq details {
  overflow: hidden;
}
.faq details > p {
  display: block;
}
html.js_motion .faq details[open] > p {
  animation: unfold 0.35s var(--ease) both;
}

@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}


.button svg, .brand svg { transition: transform 0.25s var(--ease); }
.button:hover svg { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  html.js_motion .hero_glow { animation: none; }
  html.js_motion [data-reveal],
  html.js_motion [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}

.cookie_actions .button { width: 100%; }

/* Legal pages */

.legal { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--section); }
.legal h1 { font-size: var(--step_3); margin-bottom: 8px; }
.legal .updated { color: var(--ink_soft); font-size: 0.9rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.legal h2 { font-size: var(--step_1); margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink_soft); max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { margin: 10px 0 0; padding-inline-start: 1.25rem; display: grid; gap: 6px; }
.legal table { margin-top: 12px; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.legal strong { color: var(--ink); }

/* Store badges. The artwork carries the wording, so the link carries the label. */

.store_badges {
  display: flex;
  /* Restano affiancati anche a 320 pixel: rimpiccioliscono, non vanno a capo. */
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  /* I badge hanno bisogno di aria sopra, piu della spaziatura normale della colonna. */
  margin-top: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
}

.store_badge {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 200px;
  border-radius: 12px;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.store_badge img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.store_badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store_badge:active { transform: translateY(0); }
.store_badge:focus-visible { outline: 3px solid var(--on_brand); outline-offset: 4px; }

@media (min-width: 40rem) {
  .store_badge { max-width: 220px; }
}
