/* Sketchwood — landing page styles
   Palette pulled from the app icon and in-app screens (warm wood tones). */

:root {
  --accent: #d98a3d;
  --accent-strong: #b5651d;
  --accent-soft: #f0c193;
  --dark: #1a130c;
  --dark-2: #241a11;
  --dark-3: #2e2115;
  --cream: #f7f1e9;
  --cream-2: #efe4d4;
  --ink: #221a12;
  --ink-soft: #5c5044;
  --line-light: rgba(34, 26, 18, 0.1);
  --line-dark: rgba(247, 241, 233, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(20, 12, 4, 0.45);
  --container: 1160px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { line-height: 1.65; margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-strong);
  color: #fff8ef;
  box-shadow: 0 14px 30px -10px rgba(181, 101, 29, 0.55);
}
.btn--primary:hover { background: #a15a19; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-light);
  color: var(--ink);
}
.section--dark .btn--ghost { border-color: var(--line-dark); color: var(--cream); }
.btn--ghost:hover { background: rgba(34,26,18,0.05); }
.section--dark .btn--ghost:hover { background: rgba(247,241,233,0.08); }

.btn--sm { padding: 10px 18px; font-size: 13px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); background: #000; }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn .store-btn__label { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .store-btn__label small { font-size: 11px; opacity: .75; font-weight: 400; }
.store-btn .store-btn__label strong { font-size: 15.5px; font-family: var(--font-head); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 233, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(34,26,18,0.06); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: radial-gradient(120% 140% at 85% -10%, var(--dark-3), var(--dark) 60%); color: var(--cream); }
.section--dark p { color: #cbbfae; }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--cream { background: var(--cream); }
.section--cream-2 { background: var(--cream-2); }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 40px;
  background: radial-gradient(120% 130% at 80% -10%, #fbe6c9 0%, var(--cream) 45%, var(--cream) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 20px;
}
.hero h1 .accent-text { color: var(--accent-strong); }
.hero__lede { font-size: 18.5px; max-width: 520px; }
.hero__actions { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__hint { font-size: 13.5px; color: var(--ink-soft); opacity: .85; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-head); font-size: 21px; color: var(--ink); }
.hero__trust span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-stack { position: relative; width: 100%; max-width: 420px; }
.phone-stack img {
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.phone-stack .phone--back {
  position: absolute;
  top: 6%;
  right: -6%;
  width: 58%;
  opacity: 0.9;
  transform: rotate(6deg);
  z-index: 1;
  filter: saturate(0.95);
}
.phone-stack .phone--front {
  position: relative;
  z-index: 2;
  width: 76%;
  margin: 0 auto;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%);
  filter: blur(10px);
  opacity: .55;
  z-index: 0;
}
.hero__blob--1 { width: 340px; height: 340px; top: -60px; right: -40px; }

/* redirect notice (mobile only, shown briefly before store handoff) */
.redirect-banner {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--dark);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  font-size: 14.5px;
}
.redirect-banner__spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(247,241,233,0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.redirect-banner a { color: var(--accent); font-weight: 700; text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }
html.is-redirecting .redirect-banner { display: flex; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__art img { width: 100%; }
.about__points { display: grid; gap: 22px; margin-top: 8px; }
.about__point { display: flex; gap: 16px; }
.about__point .num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--cream-2);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
}
.about__point h3 { font-size: 17.5px; margin-bottom: 4px; }
.about__point p { margin-bottom: 0; font-size: 15px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: rgba(247, 241, 233, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.section--cream .feature-card,
.section--cream-2 .feature-card {
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 30px -18px rgba(30,20,10,0.18);
}
.feature-card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(155deg, var(--accent), var(--accent-strong));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 24px; height: 24px; color: #fff8ef; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

/* Showcase strip (screens on dark) */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.showcase figure { margin: 0; }
.showcase img {
  border-radius: 20px;
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.6);
}
.showcase figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: #cbbfae;
  text-align: center;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Contact / CTA ---------- */
.contact {
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  background: linear-gradient(135deg, var(--dark) 0%, #3a2a17 100%);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.contact h2 { color: var(--cream); font-size: clamp(26px, 3.2vw, 34px); }
.contact p { color: #d9cdbc; }
.contact__actions { display: flex; flex-direction: column; gap: 14px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__meta { margin-top: 22px; font-size: 13.5px; color: #b6a892; }
.contact__meta a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #cbbfae;
  padding: 56px 0 28px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand { max-width: 340px; }
.footer__brand .brand { color: var(--cream); margin-bottom: 12px; }
.footer__brand p { font-size: 14px; color: #a99b86; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #8f8172;
  margin-bottom: 14px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 14.5px;
  color: #d9cdbc;
  padding: 6px 0;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 13px;
  color: #8f8172;
}
.powered-by { display: inline-flex; align-items: center; gap: 6px; color: #8f8172; }
.powered-by strong { color: #d9cdbc; font-family: var(--font-head); }
.powered-by:hover strong { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 12px; }
  .phone-stack { max-width: 300px; }
  .about__grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .contact { grid-template-columns: 1fr; padding: 44px 28px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn--sm.desktop-only { display: none; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer__top { flex-direction: column; }
  .footer__cols { gap: 32px; }
}

@media (max-width: 480px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 20px; }
  .contact { padding: 32px 20px; }
  .store-badges { flex-direction: column; align-items: stretch; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-light);
}
html.nav-open .mobile-nav { display: flex; }
.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--ink);
}
.mobile-nav a:hover { background: rgba(34,26,18,0.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .store-btn:hover { transform: none; }
}
