/* RoutineSpot landing — Modernist tokens retuned to the Landing Page canvas
   (Plus Jakarta Sans, porcelain orange). Component classes match the design system. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap");

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ef7503;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff4ea;
  --color-accent-200: #ffe4c7;
  --color-accent-300: #ffc889;
  --color-accent-400: #f79a45;
  --color-accent-500: #ef7503;
  --color-accent-600: #d96a02;
  --color-accent-700: #b45802;
  --color-accent-800: #7a3c02;
  --color-accent-900: #4a2608;

  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --page-max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }

a {
  color: var(--color-accent-700);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -40px;
  z-index: 2;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
}
.skip-link:focus { top: var(--space-2); color: var(--color-bg); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) max(24px, calc((100% - var(--page-max)) / 2 + 24px));
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  margin-right: auto;
  color: var(--color-text);
}
.nav-brand:hover { color: var(--color-text); text-decoration: none; }
.nav a { color: var(--color-text); text-decoration: none; font-size: 14px; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--color-accent); text-decoration: none; }

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero-copy { flex: 1 1 460px; min-width: min(100%, 300px); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0 -0.058em;
}
.hero h1 span { display: block; }
.hero-lede {
  font-size: 17px;
  line-height: 28px;
  max-width: 54ch;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.waitlist {
  scroll-margin-top: 24px;
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: 28px;
  max-width: 480px;
}
.waitlist-form .input {
  width: auto;
  flex: 1 1 220px;
  min-width: 0;
}
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-note {
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin: 14px 0 0;
}
.waitlist-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border-left: 4px solid var(--color-accent);
  padding: 8px 0 8px 16px;
}
.waitlist-done p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
}
.waitlist-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--color-accent-800);
}

.device-wrap {
  flex: 0 0 auto;
  margin: 0 auto;
}
.device {
  width: 300px;
  height: 620px;
  background: linear-gradient(180deg, #b8b4ad, #a09c95);
  border-radius: 40px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: var(--shadow-lg);
}
.device-screen {
  width: 100%;
  height: 100%;
  background: #f4f1ea;
  border-radius: 31px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
}
.device-top {
  padding: 18px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.device-kicker {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ef7503;
}
.device-title {
  font-size: 17px;
  font-weight: 800;
  color: #2b2723;
  margin-top: 2px;
}
.device-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e9e4da;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #2b2723;
  font-variant-numeric: tabular-nums;
}
.device-card {
  margin: 14px 12px 0;
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 18px;
  padding: 14px 12px;
}
.device-card.is-next {
  margin-top: 10px;
  opacity: 0.7;
}
.device-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.device-ex {
  font-size: 14px;
  font-weight: 800;
  color: #2b2723;
}
.device-meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a8377;
}
.device-sets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.device-set {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8a8377;
}
.device-set.is-current {
  color: #2b2723;
  background: #faf7f1;
  border: 1px solid #f0e9dd;
  border-radius: 12px;
  padding: 7px 8px;
  margin: 0 -8px;
}
.device-set.is-current .device-set-copy { font-weight: 700; }
.device-set.is-queued { color: #b5aea1; }
.device-set-copy { flex: 1; }
.device-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e9e4da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.device-set.is-current .device-badge {
  background: #2b2723;
  color: #fff;
}
.device-check { color: #ef7503; font-weight: 800; }
.device-open {
  border: 1.5px solid #d8d1c4;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}
.device-set.is-queued .device-open { border-color: #e5dfd4; }
.device-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ef7503;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 999px;
  margin-top: 12px;
}
.device-rest {
  margin-top: auto;
  padding: 0 12px 14px;
}
.device-rest-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #2b2723;
}
.device-rest-label {
  color: #8a8377;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.device-rest-time { font-variant-numeric: tabular-nums; }

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

.features {
  padding: clamp(40px, 6vw, 72px) 0;
}
.features-kicker {
  display: block;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  font-feature-settings: "tnum" 1;
  margin-bottom: 14px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(56px, 120px) minmax(200px, 1fr) minmax(200px, 1.4fr);
  gap: 14px clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 2px solid var(--color-divider);
}
.feature-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  line-height: 28px;
  margin: 0;
  font-feature-settings: "tnum" 1;
}
.feature h2 {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}
.feature p {
  font-size: 15.5px;
  line-height: 28px;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 52ch;
}

.close {
  background: var(--color-accent);
  color: var(--color-bg);
}
.close-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) clamp(20px, 5vw, 56px);
}
.close h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em;
  color: var(--color-bg);
}
.close h2 span { display: block; }
.close-action { margin-top: 36px; }
.close .btn-ghost {
  color: var(--color-bg);
  border-color: var(--color-bg);
  text-decoration: none;
}
.close .btn-ghost:hover {
  background: color-mix(in srgb, var(--color-bg) 14%, transparent);
  color: var(--color-bg);
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 48px 0;
  font-size: 13px;
  line-height: 28px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--color-accent); }

.legal {
  padding: clamp(48px, 7vw, 96px) 0 24px;
  max-width: 68ch;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 8px -0.03em;
}
.legal .lede {
  font-size: 16px;
  line-height: 28px;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.legal p {
  font-size: 15.5px;
  line-height: 28px;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.not-found {
  padding: clamp(64px, 10vw, 120px) 0;
}
.not-found h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 0 -0.04em;
}

@media (max-width: 720px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .feature-num { line-height: 20px; }
}

@media (max-width: 420px) {
  .device-wrap {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
