/* HairDoneAI · sito web · stili condivisi */

:root {
  --bg: #f0eaff;
  --paper: #faf6ff;
  --cream: #e8e0f5;
  --ink: #2a1f4a;
  --ink-muted: #5a4f7a;
  --ink-dim: #8a7fa8;
  --hair: #d8ccf0;
  --hair-soft: #e8dff5;
  --accent: #6b3aff;
  --accent-soft: #e0d4ff;
  --accent-deep: #4d22d9;
  --yellow: #d4ff4d;
  --copper: #ff8ed4;
  --maxw: 1180px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", system-ui, sans-serif; font-size: 15px; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* ─── Typography ─── */
.serif { font-family: "Source Serif 4", Georgia, serif; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
h1, h2, h3, h4 { font-family: "Source Serif 4", serif; font-weight: 400; letter-spacing: -0.5px; line-height: 1.1; margin: 0 0 16px; text-wrap: pretty; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 14px; text-wrap: pretty; }
.kicker {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: inline-block;
}
.lede { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; color: var(--ink-muted); max-width: 640px; }

/* ─── Layout ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: #1c1530; color: var(--cream); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark .kicker { color: var(--yellow); }
.section.dark a { color: var(--yellow); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 234, 225, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--hair-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Source Serif 4", serif; font-size: 20px; letter-spacing: -0.3px;
  color: var(--ink); font-weight: 400;
}
.nav-brand:hover { color: var(--ink); text-decoration: none; }
.nav-brand em { font-style: italic; color: var(--accent); }
.nav-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  color: #fff; font-style: italic; font-family: "Source Serif 4", serif; font-size: 19px;
  font-weight: 600;
}
.nav-links {
  display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--ink-muted); font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.nav-links a.current { color: var(--ink); background: var(--paper); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 8px 16px !important; border-radius: 8px;
  font-weight: 500; font-size: 13.5px;
}
.nav-cta:hover { background: var(--accent-deep); color: var(--yellow) !important; text-decoration: none; }

/* ─── Language switcher (nav) ─── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 8px; background: var(--paper);
  border: 1px solid var(--hair-soft); margin-right: 4px;
}
.lang-switch a, .lang-switch span {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.6px;
  padding: 4px 8px; border-radius: 5px; color: var(--ink-muted);
  font-weight: 500; text-decoration: none;
}
.lang-switch a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.lang-switch .active { background: var(--ink); color: #fff; cursor: default; }

/* ─── Language switcher (footer) ─── */
.footer-lang {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 8px; background: rgba(245,236,219,0.08);
  border: 1px solid rgba(245,236,219,0.15);
}
.footer-lang a, .footer-lang span {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.6px;
  padding: 5px 10px; border-radius: 5px; color: var(--cream); opacity: 0.65;
  text-decoration: none;
}
.footer-lang a:hover { opacity: 1; color: var(--yellow); text-decoration: none; }
.footer-lang .active { background: var(--yellow); color: var(--ink); opacity: 1; cursor: default; }
.nav-toggle {
  display: none; appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; padding: 12px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--hair);
  }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav.open .nav-cta { text-align: center; margin-top: 4px; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: "Geist", sans-serif; font-size: 15px; font-weight: 500;
  background: var(--accent); color: #fff;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--accent-deep); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn.secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.accent { background: var(--yellow); color: var(--ink); }
.btn.accent:hover { background: #c5f53d; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Hero ─── */
.hero { padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-art {
  aspect-ratio: 4/5; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fdf6e7 0%, #f0e2c8 100%);
  box-shadow: 0 30px 60px -20px rgba(31, 27, 22, 0.2);
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 400px; margin: 0 auto; }
}

/* ─── Card ─── */
.card {
  background: var(--paper); border: 1px solid var(--hair-soft); border-radius: 18px;
  padding: 28px; transition: transform 0.2s, box-shadow 0.2s;
}
.card.hover:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(31, 27, 22, 0.12); }
.card .num {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 14px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ─── Footer ─── */
.footer {
  background: #1c1530; color: var(--cream); padding: 64px 0 32px;
}
.footer a { color: var(--cream); opacity: 0.7; }
.footer a:hover { color: var(--yellow); opacity: 1; text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px;
}
.footer-brand .nav-logo { width: 36px; height: 36px; font-size: 22px; }
.footer-brand p { font-size: 13.5px; opacity: 0.65; margin-top: 14px; max-width: 280px; line-height: 1.55; }
.footer h5 {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(253, 246, 231, 0.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "Geist Mono", monospace; font-size: 11px; opacity: 0.5; letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Utils ─── */
.center { text-align: center; }
.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.divider { height: 1px; background: var(--hair); margin: 48px 0; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-deep); font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.5px;
  font-weight: 500;
}

/* ─── Phone mockup (hero) ─── */
.phone-mockup {
  position: absolute; inset: 14% 18%; border-radius: 28px; overflow: hidden;
  background: var(--paper); box-shadow: 0 24px 60px -12px rgba(31, 27, 22, 0.3);
  display: flex; flex-direction: column;
}
.phone-mockup .top-bar {
  padding: 14px 18px 10px; border-bottom: 1px solid var(--hair-soft);
  display: flex; align-items: center; gap: 8px;
}
.phone-mockup .top-bar .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.phone-mockup .top-bar .label { font-family: "Geist Mono", monospace; font-size: 9px; color: var(--ink-muted); letter-spacing: 1px; }
.phone-mockup .body { padding: 16px 18px; flex: 1; }
.phone-mockup .body h4 {
  font-size: 16px; margin: 0 0 8px; line-height: 1.2;
}
.phone-mockup .body .meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.phone-mockup .body .meta .pill {
  padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep);
  font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.4px;
}
.phone-mockup .score {
  font-family: "Source Serif 4", serif; font-size: 44px; line-height: 1; color: var(--accent);
  margin-top: 18px;
}
.phone-mockup .score small { font-size: 14px; color: var(--ink-muted); }

/* ─── Article (privacy, terms, support, blog post) ─── */
.article {
  max-width: 740px; margin: 0 auto; padding: 60px 24px 100px;
}
.article h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 28px; }
.article h3 { margin-top: 28px; font-size: 19px; font-family: "Geist", sans-serif; font-weight: 600; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 13.5px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair-soft); vertical-align: top; }
.article th { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-dim); font-weight: 500; }
.article .callout {
  padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft);
  margin: 18px 0; border-radius: 0 8px 8px 0; font-size: 14px;
}

/* ─── Brief shared page ─── */
.brief-card {
  background: var(--paper); border: 1px solid var(--hair-soft); border-radius: 24px;
  padding: 36px; max-width: 640px; margin: 0 auto;
}
.brief-card .gauge {
  width: 88px; height: 88px; position: relative; flex-shrink: 0;
}
.brief-card .score-big {
  font-family: "Source Serif 4", serif; font-size: 60px; line-height: 1; color: var(--ink);
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--hair-soft); padding: 20px 0;
}
.faq-item summary {
  font-family: "Source Serif 4", serif; font-size: 19px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none; padding: 6px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: "Geist Mono", monospace; font-size: 22px; color: var(--accent);
  font-weight: 300; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-muted); margin-top: 8px; }

/* ─── Blog ─── */
.blog-card {
  display: flex; flex-direction: column; gap: 0; background: var(--paper);
  border: 1px solid var(--hair-soft); border-radius: 14px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(31, 27, 22, 0.12); text-decoration: none; }
.blog-card .img {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  position: relative;
}
.blog-card .img.alt { background: linear-gradient(135deg, var(--yellow), var(--copper)); }
.blog-card .img.alt2 { background: linear-gradient(135deg, var(--copper), var(--accent)); }
.blog-card .img.alt3 { background: linear-gradient(135deg, var(--accent-deep), #1c1530); }
.blog-card .body { padding: 22px 24px 26px; }
.blog-card .body .meta { font-family: "Geist Mono", monospace; font-size: 10px; color: var(--ink-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.blog-card .body h3 { font-size: 21px; margin-bottom: 8px; }
.blog-card .body p { color: var(--ink-muted); font-size: 14px; margin: 0; }
