/* Palette and type follow Sources/Core/Theme.swift: paper, ink, terracotta, New York serif. */
:root {
  --paper: #F5EFE4;
  --card: #FBF7F0;
  --canvas: #EDE5D7;
  --ink: #292723;
  --muted: #6E675D;
  --line: #DDD3C4;
  --accent: #B8553A;
  --accent-soft: #F0DDD3;
  --sage: #78816B;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding-top: clamp(24px, 5vw, 56px); }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); }
.hero .lead { font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); margin: 18px auto 0; max-width: 34em; }

.seam {
  --gap: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 1120px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 0 var(--gutter);
}
.seam img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.seam img:first-child { border-radius: 6px 0 0 6px; }
.seam img:last-child { border-radius: 0 6px 6px 0; }
.seam-note {
  display: flex; justify-content: center; gap: 10px; align-items: center;
  font-size: 14px; color: var(--muted); margin-top: 14px;
}
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px; padding: 12px 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px;
}
.soon small { color: var(--muted); font-size: 15px; }

/* Sections */
section.block { padding-top: clamp(64px, 9vw, 112px); }
.block h2 { font-size: clamp(30px, 4vw, 44px); }
.block .sub { color: var(--muted); margin-top: 10px; max-width: 36em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.step { text-align: center; }
.step .n {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--serif); font-size: 18px; background: var(--card);
}
.step h3 { font-size: 25px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 6px auto 0; max-width: 20em; }
.step .shot { margin-top: 26px; height: 520px; display: flex; justify-content: center; align-items: flex-start; }
.phone {
  width: 250px; border-radius: 38px; padding: 9px; background: var(--ink);
  box-shadow: 0 24px 50px -28px rgba(41, 39, 35, .55);
}
.phone img { border-radius: 30px; }
.step .pile { position: relative; width: 280px; height: 470px; margin-left: auto; margin-right: auto; }
.pile img {
  position: absolute; width: 150px; padding: 7px 7px 22px; background: #fff;
  box-shadow: 0 10px 24px -14px rgba(41, 39, 35, .5);
}
.pile img:nth-child(1) { left: 0; top: 10px; transform: rotate(-6deg); }
.pile img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.pile img:nth-child(3) { left: 10px; top: 160px; transform: rotate(4deg); }
.pile img:nth-child(4) { right: 6px; top: 175px; transform: rotate(-4deg); }
.pile img:nth-child(5) { left: 64px; top: 300px; transform: rotate(-2deg); }

/* Looks gallery */
.looks {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: 34px; padding: 0 var(--gutter) 18px;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin-left: auto; margin-right: auto;
  scrollbar-width: thin;
}
.looks figure { margin: 0; flex: 0 0 min(520px, 82vw); scroll-snap-align: start; }
.looks img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.looks figcaption { font-size: 15px; margin-top: 10px; }
.looks figcaption span { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.features div { padding: 22px 16px 0; border-left: 1px solid var(--line); }
.features div:first-child { border-left: 0; padding-left: 0; }
.features b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; }
.features span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Price line */
.free {
  margin-top: clamp(64px, 9vw, 112px); background: var(--canvas);
  padding: clamp(48px, 7vw, 84px) 0;
}
.free .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.free .polas { display: flex; }
.free .polas img { width: 170px; padding: 8px 8px 26px; background: #fff; box-shadow: 0 14px 30px -18px rgba(41, 39, 35, .5); }
.free .polas img:first-child { transform: rotate(-5deg); }
.free .polas img:last-child { transform: rotate(4deg) translate(-26px, 18px); }
.free h2 { font-size: clamp(36px, 5vw, 56px); }
.free p { font-size: 19px; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq { margin-top: 26px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 40em; }
.more { display: inline-block; margin-top: 22px; color: var(--accent); }

/* Footer */
footer.foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 26px; padding-bottom: 40px; flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
footer.foot nav a { color: var(--muted); text-decoration: none; }
footer.foot nav a:hover { color: var(--ink); }
footer.foot small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Text pages: Guide, FAQ, Support, Privacy, Terms */
.doc { max-width: 720px; padding-top: clamp(28px, 5vw, 64px); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc .lead { color: var(--muted); font-size: 19px; margin-top: 14px; }
.doc h2 { font-size: 28px; margin-top: 48px; }
.doc h3 { font-size: 21px; margin-top: 30px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.doc a { color: var(--accent); }
.doc .faq { margin-top: 36px; }
.guide-steps { list-style: none; padding: 0 !important; counter-reset: s; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 52px; margin-top: 30px !important; }
.guide-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card);
  font-family: var(--serif); font-size: 17px;
}
.guide-steps h3 { margin-top: 0; }
.guide-steps p { color: var(--muted); margin-top: 6px; }
.figure-strip { margin-top: 26px; border: 1px solid var(--line); border-radius: 4px; }
.mail-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); margin-top: 30px !important; }
.mail-list li { border-bottom: 1px solid var(--line); margin: 0 !important; }
.mail-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; text-decoration: none; color: var(--ink); font-size: 18px; }
.mail-list a span { color: var(--muted); font-size: 15px; text-align: right; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .step .shot:not(.pile) { height: auto; }
  .features { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .features div, .features div:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 18px 12px 18px 0; }
  .free .wrap { grid-template-columns: 1fr; text-align: center; }
  .free .polas { justify-content: center; }
  .free .polas img { width: 130px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .brand { font-size: 23px; }
  .seam { --gap: 10px; }
  .seam-note { display: none; }
  .mail-list a { flex-direction: column; gap: 2px; }
  .mail-list a span { text-align: left; }
}
