/* Tutti Insieme — homepage. Same design language as Audio Harbor's site:
   warm paper, gold, quiet grids, a dark close. The phones carry the app's own colours. */

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

:root {
  --bg:        #fcfaf6;
  --bg2:       #f5f0e7;
  --text:      #1c1916;
  --secondary: #6a6358;
  --border:    #e4ddd3;
  --accent:    #8a5a1a;
  --amber:     #c4841e;
  --muted:     #8a8276;
  --radius:    12px;
  --radius-lg: 20px;
  --gold:      linear-gradient(180deg, #dcaa4e 0%, #b8812b 100%);
  --gold-line: #c99a45;

  /* The app's colours, for the phones */
  --app-chassis: #120f0e;
  --app-face:    #161412;
  --app-lift:    #1f1c1a;
  --app-ivory:   #f0e8d9;
  --app-dim:     #9e9482;
  --app-amber:   #fab838;
  --app-edge:    #615950;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(252,250,246,0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo, .footer-logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--text); text-decoration: none;
}
.nav-logo img, .footer-logo img { display: block; width: 40px; height: 40px; }
.brand-word {
  font-size: 1.02rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  position: relative;
  color: var(--secondary); text-decoration: none;
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .15s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--secondary); text-decoration: none;
  border: 1px solid var(--border); border-radius: 980px;
  padding: 6px 12px;
}
.lang:hover { border-color: var(--gold-line); color: var(--text); }
.nav-cta {
  font-size: 0.84rem; font-weight: 600;
  color: #fff; text-decoration: none;
  background: var(--gold);
  padding: 10px 22px; border-radius: 980px;
  box-shadow: 0 6px 18px rgba(184,129,43,0.28);
  transition: filter .15s;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.06); }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 24px 72px;
}
.hero-waves {
  position: absolute; top: 40px; right: -160px;
  width: 1100px; height: 620px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p {
  font-size: 1.12rem;
  color: var(--secondary);
  max-width: 520px;
  margin: 0 0 30px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary, .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff;
  font-size: 0.92rem; font-weight: 600;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(184,129,43,0.30);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
  font-size: 0.92rem; font-weight: 500;
  padding: 13px 26px;
  border: 1px solid #cfc6b8; border-radius: 980px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--gold-line); background: rgba(255,255,255,0.6); }
.btn-secondary::after { content: " →"; }
.hero .hero-trust {
  font-size: 0.8rem; color: var(--muted);
  margin: 26px 0 0;
  letter-spacing: 0.02em; line-height: 1.6;
}

/* Phones in sync: every equaliser and progress bar runs on the same clock. */
.phones {
  position: relative;
  height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.phone {
  position: absolute;
  width: 230px; height: 470px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #3a332c 0%, #15120f 60%);
  box-shadow: 0 40px 90px rgba(90,60,20,0.25), 0 8px 24px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone.left  { transform: translateX(-150px) rotate(-8deg) scale(0.86); z-index: 1; }
.phone.right { transform: translateX(150px) rotate(8deg) scale(0.86); z-index: 1; }
.phone.center { z-index: 2; }
.screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2a2420 0%, var(--app-chassis) 70%);
  color: var(--app-ivory);
  padding: 42px 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.screen::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  width: 74px; height: 22px; border-radius: 12px;
  transform: translateX(-50%);
  background: #000;
}
.ui-row { display: flex; justify-content: space-between; align-items: center; }
.ui-label {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--app-dim);
}
.ui-lamp {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--app-amber);
}
.ui-lamp::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--app-amber); box-shadow: 0 0 8px var(--app-amber);
}
.art {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--app-lift) 0%, var(--app-chassis) 100%);
  border: 1px solid rgba(97,89,80,0.55);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.eq { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.eq span {
  width: 9px; border-radius: 3px;
  background: var(--app-amber);
  box-shadow: 0 0 12px rgba(250,184,56,0.45);
  animation: eq 1.2s ease-in-out infinite;
}
.eq span:nth-child(1) { animation-delay: -0.9s; }
.eq span:nth-child(2) { animation-delay: -0.3s; }
.eq span:nth-child(3) { animation-delay: -0.6s; }
.eq span:nth-child(4) { animation-delay: -0.1s; }
.eq span:nth-child(5) { animation-delay: -0.75s; }
@keyframes eq {
  0%, 100% { height: 18%; }
  25% { height: 92%; }
  50% { height: 40%; }
  75% { height: 70%; }
}
.ui-title { font-family: ui-serif, Georgia, serif; font-size: 1.15rem; text-align: center; }
.ui-sub { font-size: 0.66rem; color: var(--app-dim); text-align: center; margin-top: -6px; }
.ui-bar { height: 4px; border-radius: 2px; background: rgba(240,232,217,0.14); overflow: hidden; }
.ui-bar i {
  display: block; height: 100%; width: 0;
  background: var(--app-amber);
  animation: progress 24s linear infinite;
}
@keyframes progress { from { width: 4%; } to { width: 100%; } }
.ui-buttons { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.ui-buttons b {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--app-lift); border: 1px solid rgba(97,89,80,0.6);
}
.ui-buttons b.play { width: 42px; height: 42px; background: var(--app-amber); box-shadow: 0 0 18px rgba(250,184,56,0.5); }
.salute {
  position: absolute; top: 46px; left: 12px; right: 12px; z-index: 3;
  border-radius: 980px;
  background: var(--app-amber); color: var(--app-chassis);
  font-size: 0.66rem; font-weight: 600;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  animation: salute 8s ease-in-out infinite;
}
@keyframes salute {
  0%, 8%   { opacity: 0; transform: translateY(-8px); }
  14%, 46% { opacity: 1; transform: none; }
  52%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .eq span, .ui-bar i, .salute { animation: none; }
  .eq span { height: 60%; }
  .ui-bar i { width: 42%; }
}
@media (max-width: 900px) {
  .hero { padding-top: 112px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-waves { right: -420px; }
}
@media (max-width: 520px) {
  .phones { height: 440px; }
  .phone { width: 196px; height: 400px; }
  .phone.left  { transform: translateX(-92px) rotate(-8deg) scale(0.8); }
  .phone.right { transform: translateX(92px) rotate(8deg) scale(0.8); }
}

/* Sections */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--secondary);
  max-width: 560px; line-height: 1.6;
}
.note {
  font-size: 0.78rem; color: var(--muted);
  margin-top: 28px; max-width: 620px; line-height: 1.55;
}
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.section { padding: 80px 0; }
.section.tinted { background: var(--bg2); }
.section-header { margin-bottom: 52px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--bg); padding: 32px 28px; }
.cell-num {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--secondary); margin-bottom: 16px;
}
.cell-lead {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  border: 1px solid rgba(201,154,69,0.45); border-radius: 13px;
  background: #fbf3e4; color: #b8812b;
  font-size: 1.25rem; line-height: 1;
}
.cell h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 8px; }
.cell p { font-size: 0.86rem; color: var(--secondary); line-height: 1.65; }

/* Quote */
.quote-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-inner {
  max-width: 932px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.quote {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
  line-height: 1.4;
}
.quote em { font-style: normal; color: var(--text); }
.banner-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, #2e2a25 0%, #16130f 70%);
  padding: 44px 24px;
  box-shadow: 0 30px 70px rgba(90,60,20,0.18);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.banner-card .pill {
  border-radius: 980px;
  background: var(--app-amber); color: var(--app-chassis);
  font-size: 0.82rem; font-weight: 600;
  padding: 10px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.banner-card .pill.quiet { background: var(--app-lift); color: var(--app-ivory); border: 1px solid rgba(97,89,80,0.6); }
@media (max-width: 700px) {
  .quote-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
}

/* Close */
.cta-section {
  background: radial-gradient(120% 140% at 50% 0%, #2e2a25 0%, #16130f 60%, #0e0c0a 100%);
  color: #fff;
  padding: 88px 24px;
  text-align: center;
}
.cta-mark { display: block; width: 76px; height: 76px; margin: 0 auto 26px; filter: drop-shadow(0 12px 28px rgba(220,170,78,0.28)); }
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta-section p { font-size: 1rem; opacity: 0.6; margin: 0 auto 36px; max-width: 540px; }

footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 0.78rem; color: var(--secondary);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
footer p { font-size: 0.75rem; color: var(--secondary); }

/* Text pages (privacy) */
.page { max-width: 680px; margin: 0 auto; padding: 116px 24px 80px; }
.page h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.page .updated { font-size: 0.85rem; color: var(--secondary); margin-bottom: 36px; }
.page h2 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 8px; }
.page p { font-size: 0.95rem; color: var(--secondary); margin-bottom: 14px; line-height: 1.6; }
.page ul { margin: 0 0 14px 18px; color: var(--secondary); font-size: 0.95rem; line-height: 1.6; }
.page ol { margin: 0 0 14px 20px; color: var(--secondary); font-size: 0.95rem; line-height: 1.6; }
.page li + li { margin-top: 6px; }
.page code { font-size: 0.85em; background: var(--bg2); padding: 1px 5px; border-radius: 5px; }
.page section + section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.page .table-wrap { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.page table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.page th, .page td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.page th { font-weight: 600; color: var(--text); background: var(--bg2); }
.page td { color: var(--secondary); }
.page td:first-child { color: var(--text); font-weight: 500; }
.page tbody tr:last-child td { border-bottom: none; }
.page .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page .note { font-size: 0.8rem; color: var(--muted); }

/* Eight links need room: closer together first, then only the links to other pages. */
@media (max-width: 1400px) {
  .nav-links { gap: 22px; }
}
@media (max-width: 1375px) {
  .nav-link[href*="#"] { display: none; }
}
@media (max-width: 960px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 890px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .brand-word { font-size: 0.8rem; letter-spacing: 0.2em; }
  .nav-cta { padding: 8px 14px; font-size: 0.78rem; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .page { padding: 96px 16px 64px; }
}
@media (max-width: 480px) {
  /* The hero's own button says the same right below. */
  .nav-cta { display: none; }
}

/* Screenshots: a strip of the App Store images that scrolls sideways */
.shots-strip {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100vw - 980px) / 2 + 24px)) 28px;
  scrollbar-width: thin;
}
.shots-strip img {
  flex: none; height: 600px; width: auto;
  border-radius: 22px; scroll-snap-align: center;
  box-shadow: 0 18px 40px rgba(28, 25, 22, 0.18);
}
@media (max-width: 520px) {
  .shots-strip { gap: 14px; padding: 4px 16px 20px; }
  .shots-strip img { height: 460px; border-radius: 16px; }
}

/* The demo video: two phones side by side */
.demo-video { max-width: 640px; margin: 0 auto; }
.demo-video video {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); background: var(--app-chassis);
  box-shadow: 0 18px 40px rgba(28, 25, 22, 0.18);
}
.demo-video figcaption {
  margin-top: 14px; text-align: center;
  font-size: 14px; color: var(--secondary);
}

/* First steps: a guide with screenshots, step by step */
.guide { max-width: 1040px; margin: 0 auto; padding: 116px 24px 72px; }
.guide-intro { max-width: 640px; margin-bottom: 40px; }
.guide-intro h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px;
}
.guide-intro p { font-size: 1.05rem; color: var(--secondary); line-height: 1.6; }
.guide b { color: var(--text); font-weight: 600; }
.guide-needs, .guide-help {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.guide-needs h2, .guide-help h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.guide-needs ul, .guide-help ul, .taps {
  margin: 0 0 0 20px;
  color: var(--secondary); font-size: 0.97rem; line-height: 1.65;
}
.guide-needs li + li, .guide-help li + li, .taps li + li { margin-top: 6px; }
.guide-steps { list-style: none; margin: 24px 0; }
.guide-step {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px; align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.guide-text { position: sticky; top: 96px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(184,129,43,0.28);
  margin-bottom: 16px;
}
.guide-text h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.guide-text > p { font-size: 0.97rem; color: var(--secondary); line-height: 1.65; margin-bottom: 14px; }
.taps { margin-bottom: 18px; }
.guide .tip {
  font-size: 0.9rem; color: var(--secondary); line-height: 1.6;
  border-left: 3px solid var(--gold-line);
  padding: 4px 0 4px 14px;
  margin: 0 0 12px;
}
.guide-shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.guide-shots figure { flex: 1 1 0; max-width: 200px; min-width: 0; }
.guide-shots img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
  background: var(--app-chassis);
  box-shadow: 0 14px 34px rgba(28, 25, 22, 0.18);
}
.guide-shots figcaption {
  margin-top: 10px; text-align: center;
  font-size: 0.82rem; color: var(--secondary);
}
.guide-help { margin-top: 48px; }
.guide-help .guide-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) {
  .guide-step { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .guide-text { position: static; }
}
@media (max-width: 520px) {
  .guide { padding: 96px 16px 56px; }
  .guide-needs, .guide-help { padding: 22px 20px; }
  .guide-shots { gap: 12px; }
  .guide-shots figure { flex: 0 1 calc(50% - 6px); max-width: none; }
  .guide-shots img { border-radius: 16px; }
}

/* On the homepage: the way into the guide */
.guide-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.guide-teaser h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.guide-teaser p { font-size: 0.9rem; color: var(--secondary); line-height: 1.55; }
.guide-teaser .btn-secondary { flex: none; }
@media (max-width: 640px) {
  .guide-teaser { flex-direction: column; align-items: flex-start; }
}
