/* Salon's website: one landing page, a privacy page and a support page.
   The look is the app's: a near-black ground, an italic serif for the words
   that matter, and one yellow-green for the thing to press.
   Everything is served from this folder: no outside fonts, scripts or trackers. */

@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa_600SemiBold_Italic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #0B0B0C;
  --panel: #18181A;
  --raised: #1F1F22;
  --line: #2A2A2C;
  --text: #F4F1EA;
  --soft: #E4E0D7;
  --muted: #B9B5AC;
  --accent: #E6FF4F;
  --ink: #0B0B0C;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: italic; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }

/* The top: the name on the left, the page's parts, and where the app will be. */
.top { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { font: italic 600 28px/1 var(--serif); letter-spacing: -0.5px; text-decoration: none; margin-right: auto; }
.jump { display: flex; gap: 22px; font-weight: 600; font-size: 14px; }
.jump a { color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--text); }
.soon { padding: 8px 14px; border-radius: 16px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--soft); }
.top .small { font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.top a.small:hover { color: var(--text); }

.label { font: 600 12px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }

/* The opening: what Salon is, and the app itself between two paintings. */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 36px 84px; }
h1 { margin: 16px 0 0; font: 600 clamp(44px, 6.6vw, 78px)/1.02 var(--serif); letter-spacing: -1.5px; text-wrap: balance; }
h1 em { color: var(--accent); }
.lead { margin: 22px 0 0; max-width: 33em; font-size: 19px; line-height: 1.55; color: var(--soft); }

.get { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 28px; background: var(--accent); color: var(--ink); font: 600 17px/1 var(--sans); text-decoration: none; }
a.button:hover { filter: brightness(1.06); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.note { font-size: 14px; color: var(--muted); }

/* An iPhone, drawn in CSS around a real picture of the app. */
.phone { position: relative; width: min(300px, 74vw); padding: 9px; border-radius: 44px; background: #050506; border: 1px solid #3A3A3E; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.phone img { width: 100%; border-radius: 36px; }

.stage { position: relative; display: grid; justify-items: center; padding-block: 12px; }
.stage::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 255, 79, 0.17), transparent); filter: blur(10px); }
.stage .phone { z-index: 1; }
.hung { position: absolute; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(244, 241, 234, 0.2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.hung.left { left: -7%; top: 3%; width: 36%; transform: rotate(-5deg); }
.hung.right { right: -9%; bottom: 7%; width: 46%; transform: rotate(4deg); }

/* A row of paintings, each whole and in its own shape, gliding slowly past. */
.gallery { overflow: hidden; padding-block: 6px 10px; border-block: 1px solid var(--line); background: #0E0E10; }
.gallery .row { display: flex; gap: 14px; width: max-content; padding-block: 18px; animation: glide 90s linear infinite; }
.gallery:hover .row { animation-play-state: paused; }
.gallery figure { margin: 0; flex: none; }
.gallery img { height: clamp(150px, 22vw, 230px); width: auto; border-radius: 8px; border: 1px solid rgba(244, 241, 234, 0.14); }
.gallery figcaption { margin-top: 7px; max-width: 26ch; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
@keyframes glide { to { transform: translateX(calc(-50% - 7px)); } }

/* Four numbers. */
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 56px 28px; }
.count div { padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); }
.count b { display: block; font: italic 600 clamp(36px, 5vw, 54px)/1 var(--serif); letter-spacing: -1px; }
.count span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* What the app does, one part at a time: the screen on one side, the words on the other. */
.features { display: grid; gap: 28px; padding-block: 44px 28px; scroll-margin-top: 20px; }
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 44px 48px; border-radius: 28px; background: linear-gradient(160deg, var(--panel), #111113); border: 1px solid var(--line); }
.feature .phone { justify-self: center; width: min(270px, 70vw); }
.feature.turned .phone { order: 2; }
.feature h2 { margin: 14px 0 12px; font: 600 clamp(32px, 4.4vw, 46px)/1.06 var(--serif); letter-spacing: -0.8px; text-wrap: balance; }
.feature h2 em { color: var(--accent); }
.feature p { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--soft); }
.feature ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.feature li { position: relative; padding-left: 26px; font-size: 15px; color: var(--soft); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Three smaller things. */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-block: 0 64px; scroll-margin-top: 20px; }
.card { padding: 26px 24px 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.card h2, .card h3 { margin: 12px 0 8px; font: 600 27px/1.1 var(--serif); letter-spacing: -0.4px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--soft); }

/* The price, said plainly. */
#price { scroll-margin-top: 20px; }
.price { margin-bottom: 72px; padding: 34px 32px; border-radius: 28px; background: var(--accent); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.price h2 { margin: 0; font: 600 clamp(28px, 4vw, 40px)/1.08 var(--serif); letter-spacing: -0.6px; }
.price p { margin: 10px 0 0; max-width: 36em; font-size: 16px; line-height: 1.5; }
.price .button { background: var(--ink); color: var(--accent); }

/* The foot of every page. */
.foot { border-top: 1px solid var(--line); padding-block: 26px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { margin: 0; max-width: 46em; }

/* The privacy and support pages: one column of text. */
.page { max-width: 720px; padding-block: 28px 72px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); }
.page h2 { margin: 38px 0 8px; font: 600 26px/1.15 var(--serif); letter-spacing: -0.3px; }
.page p, .page li { color: var(--soft); }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.page .dated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.page a { color: var(--accent); }
.todo { padding: 2px 6px; border-radius: 6px; background: rgba(230, 255, 79, 0.16); color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 16px 60px; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 32px 22px 36px; }
  .feature.turned .phone { order: 0; }
  .count { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding-block: 44px 16px; }
  .more { grid-template-columns: 1fr; padding-bottom: 48px; }
  .price { margin-bottom: 52px; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .jump { display: none; }
  .hung.left { width: 38%; left: -3%; }
  .hung.right { width: 48%; right: -3%; }
}
/* For people who have asked their device for less movement, the row of paintings stands still and can be scrolled. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery { overflow-x: auto; }
  .gallery .row { animation: none; }
}
