/* CLEARSTILL — marketing site.
   Tokens from BRAND_GUIDELINES.md. Dark-first, as the app is. */

:root {
  --base: #101214;
  --scene: #232C38;
  --elevated: #1B1E22;
  --subtle: #2A2E34;
  --text: #F2EFEA;
  --text-2: rgba(242, 239, 234, 0.65);
  --muted: #8B929A;
  --faint: #6C737B;
  --hairline: rgba(242, 239, 234, 0.08);

  --ember: #FF8B5E;
  --on-ember: #341A0F;
  --mint: #4AD98F;
  --gold: #F5C97B;
  --ice: #9FD4E8;
  --rose: #E892B7;
  --peri: #AEB6FF;

  --wrap: 1120px;
  --pad: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ember); text-decoration: none; }
a:hover { color: #FFB088; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; }

.ember { color: var(--ember); }
.mint { color: var(--mint); }
.gold { color: var(--gold); }

.overline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}
.gold-text { color: var(--gold); }

/* The Stillpoint: an ember sun on a still horizon, with its reflection. */
.stillpoint {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(165deg, #F7F4EE, #EAE5DC);
  position: relative;
  overflow: hidden;
  flex: none;
}
.stillpoint::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ember);
  transform: translate(-50%, -58%);
}
.stillpoint::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%; top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--base);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.wordmark { font-weight: 800; font-size: 15px; letter-spacing: 0.24em; padding-left: 0.24em; }

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  font-weight: 800;
  white-space: nowrap;
}
.pill-ember { padding: 11px 20px; background: var(--ember); color: var(--on-ember); font-size: 14px; }
.pill-ember:hover { background: #FFA077; color: var(--on-ember); }
.pill-ceramic { padding: 15px 26px; background: var(--text); color: var(--base); font-size: 16px; }
.pill-ceramic:hover { background: #fff; color: var(--base); }
.pill-outline {
  padding: 15px 26px;
  border: 1.5px solid rgba(242, 239, 234, 0.2);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 700;
}
.pill-outline:hover { border-color: rgba(242, 239, 234, 0.4); color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(16, 18, 20, 0.86); backdrop-filter: blur(12px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.pill) { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:not(.pill):hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(255, 139, 94, 0.16) 0%, rgba(255, 139, 94, 0) 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex; gap: 70px; align-items: center; flex-wrap: wrap;
  padding-block: 70px 90px;
}
.hero-copy { flex: 1; min-width: 380px; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 6vw, 64px); line-height: 1.02; }
.lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 460px; }
.cta-row { display: flex; gap: 14px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.trust { display: flex; gap: 12px; margin-top: 30px; font-size: 13.5px; font-weight: 600; color: var(--faint); flex-wrap: wrap; }

/* The phone. Drawn rather than screenshotted, so it stays sharp at any size. */
.phone {
  flex: none;
  width: 330px; height: 660px;
  border-radius: 52px;
  background: #000;
  padding: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 43px;
  background: var(--base);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.scene { height: 150px; background: linear-gradient(180deg, var(--scene) 0%, var(--base) 100%); position: relative; flex: none; }
.sun {
  position: absolute; top: 36px; left: 44px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 26px rgba(245, 201, 123, 0.45);
}
.cloud { position: absolute; top: 52px; right: 36px; width: 84px; height: 24px; border-radius: 99px; background: #2B3542; opacity: 0.8; }
.greeting { padding-inline: 24px; }
.hi { font-size: 13px; color: var(--text-2); }
.headline { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-top: 3px; }
.wave { position: relative; margin-top: 18px; }
.wave-fill {
  position: absolute; left: -50px; right: -50px; top: 6px; height: 130px;
  border-radius: 48% 52% 0 0 / 90% 70% 0 0;
  background: linear-gradient(180deg, var(--mint) 0%, #2EA96A 100%);
}
.wave-body { position: relative; padding: 22px 22px 0; }
.wave-body svg { width: 100%; height: 46px; display: block; }
.wave-meta { display: flex; justify-content: space-between; padding: 8px 0 16px; font-size: 11px; font-weight: 800; color: #0B2B1B; }
.chips { display: flex; gap: 7px; padding: 14px 22px 0; }
.chip { padding: 8px 13px; border-radius: 99px; background: var(--elevated); font-size: 11px; font-weight: 700; }
.chip-mint { color: var(--mint); }
.chip-gold { color: var(--gold); }
.craving {
  margin: 16px 22px 0;
  padding: 14px;
  border-radius: 99px;
  background: var(--ember);
  color: var(--on-ember);
  font-size: 13px; font-weight: 800; text-align: center;
}
.thought { margin: 14px 22px 0; padding: 14px 16px; background: var(--elevated); border-radius: 20px; }
.thought-label { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.thought-title { font-size: 14px; font-weight: 800; margin-top: 4px; }

/* Principle strip */
.principle { background: #0D0F11; border-block: 1px solid var(--hairline); padding-block: 66px; }
.principle h2 { font-size: clamp(30px, 4vw, 40px); }
.principle p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 720px; }

/* Cards */
.features, .pair { padding-block: 76px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--elevated); border-radius: 28px; padding: 28px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.inline-link { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 700; }

.card-art { height: 120px; margin-bottom: 22px; border-radius: 18px; background: #15181B; display: flex; align-items: center; justify-content: center; }
.art-calendar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 22px; }
.art-calendar .d { border-radius: 5px; aspect-ratio: 1; }
.d.free { background: linear-gradient(160deg, var(--mint), #2EA96A); }
.d.gold { background: rgba(245, 201, 123, 0.18); border: 1px solid rgba(245, 201, 123, 0.5); }
.d.untracked { border: 1px dashed rgba(108, 115, 123, 0.5); }
.d.today { background: var(--text); }
.art-breath { position: relative; }
.art-breath .ring { position: absolute; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(159, 212, 232, 0.28); }
.art-breath .orb {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #BFE3F2, var(--ice) 62%, #7FB8D0);
  box-shadow: 0 0 34px rgba(159, 212, 232, 0.32);
}
.art-marks { gap: 12px; }
.art-marks .disc { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
.disc.ceramic { background: radial-gradient(circle at 32% 28%, #FEFDFB, #EDE7DC 55%, #C9C0B0); }
.disc.glass { background: radial-gradient(circle at 32% 28%, #CFE7F2, #A8C9DA 55%, #7C9CB0); }
.disc.stone { background: radial-gradient(circle at 32% 28%, #B7B5AF, #83817B 55%, #575652); }

/* Drink Lab */
.lab { padding-bottom: 76px; }
.lab-card {
  background: var(--elevated);
  border-radius: 32px;
  padding: 40px;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  max-width: calc(var(--wrap) - var(--pad) * 2);
}
.lab-copy { flex: 1; min-width: 320px; }
.lab-copy h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 14px; }
.lab-copy > p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.sensations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sense { padding: 8px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
.sense.mint { color: var(--mint); background: rgba(74, 217, 143, 0.1); border: 1px solid rgba(74, 217, 143, 0.26); }
.sense.gold-chip { color: var(--gold); background: rgba(245, 201, 123, 0.1); border: 1px solid rgba(245, 201, 123, 0.26); }
.sense.ice { color: var(--ice); background: rgba(159, 212, 232, 0.1); border: 1px solid rgba(159, 212, 232, 0.26); }
.sense.ember-chip { color: var(--ember); background: rgba(255, 139, 94, 0.1); border: 1px solid rgba(255, 139, 94, 0.26); }
.sense.rose { color: var(--rose); background: rgba(232, 146, 183, 0.1); border: 1px solid rgba(232, 146, 183, 0.26); }
.sense.peri { color: var(--peri); background: rgba(174, 182, 255, 0.1); border: 1px solid rgba(174, 182, 255, 0.26); }
.lab-recipe { flex: none; width: 260px; border-radius: 22px; overflow: hidden; background: var(--subtle); }
/* Placeholder until real photography lands, labelled the way the handoff asks. */
.recipe-photo {
  height: 190px;
  background: repeating-linear-gradient(45deg, #232830 0 10px, #1B1E22 10px 20px);
}
.recipe-meta { padding: 16px 18px; }
.recipe-title { font-size: 16px; font-weight: 800; }
.recipe-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Closing */
.closing { position: relative; overflow: hidden; padding-block: 96px 110px; text-align: center; }
.closing-glow {
  position: absolute; bottom: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(255, 139, 94, 0.2) 0%, rgba(255, 139, 94, 0) 68%);
  pointer-events: none;
}
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.app-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: linear-gradient(165deg, #F7F4EE, #EAE5DC);
  position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.app-icon::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ember); transform: translate(-50%, -58%);
}
.app-icon::after {
  content: ''; position: absolute; left: 18%; right: 18%; top: 50%;
  height: 4px; border-radius: 3px; background: var(--base);
}
.closing h2 { font-size: clamp(30px, 4.4vw, 44px); }
.pricing { font-size: 14px; line-height: 1.7; color: var(--faint); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding-block: 40px 52px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; font-size: 13px; font-weight: 600; }
.footer-links a { color: var(--faint); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.disclaimer p { font-size: 12.5px; color: var(--faint); max-width: 620px; line-height: 1.6; }

/* Responsive: cards stack under ~900px, the hero phone drops below the copy under ~820px. */
@media (max-width: 900px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 52px; }
  .hero-copy { min-width: 0; }
  .phone { align-self: center; }
  .nav-links a:not(.pill) { display: none; }
}
@media (max-width: 420px) {
  :root { --pad: 20px; }
  .phone { width: 100%; max-width: 330px; height: auto; aspect-ratio: 330 / 660; }
  .lab-card { padding: 26px; }
  .lab-recipe { width: 100%; }
}
