/* Serenity Salon audit + proposal. Shared styles. */
:root {
  --ink: #12181b;
  --muted: #56626a;
  --line: #e2e7ea;
  --panel: #f3f6f7;
  --teal: #074151;
  --teal-soft: #e6eef0;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.tabs { display: flex; gap: 6px; }
.tabs a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding-block: 8px; padding-inline: 14px; border-radius: 999px;
}
.tabs a[aria-current="page"] { background: var(--teal); color: var(--white); }
.tabs a:not([aria-current]):hover { background: var(--panel); color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 66px); letter-spacing: -.01em; }
h2 { font-size: clamp(29px, 4vw, 42px); }
h3 { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.25; }
p { margin-block: 0 16px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
.fix { border-left: 3px solid var(--teal); padding-inline-start: 16px; margin-block: 18px 0; }
.fix strong { color: var(--teal); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--panel); padding: 2px 6px; border-radius: 4px; word-break: break-word; }

/* Sections */
.hero { padding-block: 84px 56px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 60ch; margin-block: 24px 20px; }
section { padding-block: 64px; }
section.tint { background: var(--panel); }
.sec-head { max-width: 62ch; margin-block-end: 36px; }
.sec-head p { color: var(--muted); margin-block: 14px 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.stat { padding-block: 28px; padding-inline: 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 50px); font-weight: 600; line-height: 1.05; color: var(--teal); }
.stat span { display: block; margin-block-start: 10px; font-size: 15.5px; line-height: 1.45; color: var(--muted); }

/* Grades */
.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grade { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding-block: 22px; padding-inline: 20px; }
.grade b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--teal); display: block; }
.grade strong { display: block; margin-block: 12px 6px; font-size: 16px; }
.grade span { font-size: 14.5px; line-height: 1.45; color: var(--muted); display: block; }

/* Findings */
.finding { padding-block: 40px; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; padding-block-start: 0; }
.finding > h3 { max-width: 30ch; margin-block-end: 14px; }
.finding > p, .finding > ul { max-width: 68ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h3 { margin-block-end: 14px; }
ul.plain { margin-block: 0 16px; padding-inline-start: 20px; }
ul.plain li { margin-block-end: 8px; }

/* Screenshots */
figure { margin: 0; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px -24px rgba(7, 65, 81, .35); }
.shot img { width: 100%; }
figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-block-start: 12px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; margin-block: 28px 8px; }

/* Tables */
.table { overflow-x: auto; margin-block: 22px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; padding-block: 12px; padding-inline: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.tight table { min-width: 0; }
tr.you td { background: var(--teal-soft); font-weight: 600; }

/* Search result mock */
.serp { border: 1px solid var(--line); border-radius: 12px; padding-block: 18px; padding-inline: 20px; background: var(--white); font-family: Arial, sans-serif; margin-block: 20px 6px; max-width: 640px; }
.serp small { display: block; color: #4d5156; font-size: 13px; }
.serp b { display: block; color: #1a0dab; font-size: 19px; font-weight: 400; margin-block: 4px; }
.serp span { display: block; color: #4d5156; font-size: 14px; line-height: 1.5; }

/* Cards and lists */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding-block: 26px; padding-inline: 24px; }
.card h3 { font-size: 21px; margin-block-end: 10px; }
.card p, .card li { font-size: 16px; color: var(--muted); }
.card ul { margin: 0; padding-inline-start: 18px; }
.card li { margin-block-end: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; }
.checks li { position: relative; padding-inline-start: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.price .card b.amt { display: block; font-family: var(--serif); font-size: clamp(44px, 6vw, 62px); line-height: 1; color: var(--teal); margin-block: 6px 6px; }
.price .card b.amt small { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--muted); }
.price .card.main { border-color: var(--teal); border-width: 2px; }

/* CTA + footer */
.cta { background: var(--teal); color: var(--white); padding-block: 72px; }
.cta h2 { color: var(--white); max-width: 20ch; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 56ch; margin-block: 18px 28px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding-block: 14px; padding-inline: 26px; border-radius: 999px; background: var(--white); color: var(--teal); }
.btn.dark { background: var(--teal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); margin-inline-start: 10px; }
footer { padding-block: 32px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-inline-start: 0; padding-inline: 0 16px; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade:last-child { grid-column: span 2; }
  .split, .price { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 52px 40px; }
  section { padding-block: 48px; }
  .shots, .checks { grid-template-columns: minmax(0, 1fr); }
  .brand span { display: none; }
  .btn.ghost { margin-inline-start: 0; margin-block-start: 12px; }
}
