/* My Next Thing marketing site.
 * Colors come from the app (light-blue seed, deep-blue primary buttons) and the
 * logo gradient. Typography matches the app: Inter + Plus Jakarta Sans. */

:root {
  --brand-50: #eef8fe;
  --brand-100: #d7eefb;
  --brand-200: #b3def6;
  --brand-400: #29a9ec;
  --brand-500: #0a8fd6;
  --brand-600: #0a6fa8;
  --brand-700: #145a80;
  --brand-900: #0d3047;

  --ink: #0f1d29;
  --ink-2: #3c4b58;
  --ink-3: #66737f;
  --line: #e2e8ee;
  --surface: #ffffff;
  --surface-2: #f5f8fb;
  --warn-bg: #fff6e0;
  --warn-line: #f2d48a;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 29 41 / 0.06), 0 1px 3px rgb(15 29 41 / 0.06);
  --shadow: 0 10px 30px -12px rgb(15 29 41 / 0.18), 0 2px 6px rgb(15 29 41 / 0.05);
  --shadow-lg: 0 40px 80px -30px rgb(13 48 71 / 0.35), 0 12px 24px -12px rgb(13 48 71 / 0.18);

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-text);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

.icon { flex: none; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1240px; }
.container--narrow { max-width: 760px; }

.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand-700); color: #fff; box-shadow: 0 6px 16px -6px rgb(20 90 128 / 0.6); }
.btn--primary:hover { background: var(--brand-900); color: #fff; }

.btn--outline { background: var(--surface); color: var(--brand-700); border-color: var(--brand-200); }
.btn--outline:hover { border-color: var(--brand-600); color: var(--brand-900); }

.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--brand-50); color: var(--ink); }

.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-900); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgb(226 232 238 / 0.7);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 1.15rem/1 var(--font-head);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }

.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 0;
  background:
    radial-gradient(1000px 420px at 50% -80px, rgb(41 169 236 / 0.20), transparent 70%),
    linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 72%);
  overflow: hidden;
}
.hero__inner { text-align: center; max-width: 880px; }
.hero h1 { margin-top: 14px; }
.hero .accent {
  background: linear-gradient(100deg, var(--brand-400), var(--brand-600) 60%, var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin: 22px auto 0; max-width: 640px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fineprint { margin-top: 16px; color: var(--ink-3); font-size: 0.88rem; }

.frame.hero__shot { margin-top: 56px; margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.eyebrow {
  display: inline-block;
  color: var(--brand-600);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; }

/* ---------- Screenshot frame ---------- */

.frame {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.frame__dot { width: 11px; height: 11px; border-radius: 50%; background: #d6dde3; }
.frame__address {
  flex: 0 1 300px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.78rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-20px); /* visually centre despite the dots on the left */
}
.frame img { width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-heading h2 { margin-top: 10px; }
.section-heading .lead { margin-top: 16px; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step__icon, .card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.step__number {
  display: block;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step h3 { margin-top: 4px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

/* Feature tour */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}
.feature-row + .feature-row { margin-top: 112px; }
.feature-row--reversed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row--reversed .feature-row__text { order: 2; }
.feature-row__text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.feature-row__text > p { margin-top: 14px; color: var(--ink-2); }
.feature-row__text .checklist { margin-top: 20px; }
.feature-row__media .frame { box-shadow: var(--shadow); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.97rem; }
.checklist .icon { margin-top: 3px; color: var(--brand-500); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 16px; font-size: 1.05rem; }
.card p { margin-top: 6px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid var(--brand-500);
  box-shadow: 0 24px 48px -24px rgb(10 111 168 / 0.45);
}
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: 0.78rem;
  font-weight: 600;
}
.plan__price { margin-top: 18px; display: flex; align-items: baseline; }
.plan__amount { font: 800 3.2rem/1 var(--font-head); letter-spacing: -0.03em; }
.plan__per { margin-left: 6px; color: var(--ink-3); font-weight: 500; }
.plan__billed { margin-top: 6px; color: var(--ink-3); font-size: 0.92rem; }
.plan .btn { margin-top: 24px; }
.plan .checklist { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.pricing__note { margin-top: 28px; text-align: center; color: var(--ink-3); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--brand-200); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }
.faq__more { margin-top: 24px; text-align: center; color: var(--ink-3); }

/* ---------- Final CTA ---------- */

.section--cta { padding-top: 0; }
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 32px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 260px at 85% 0%, rgb(41 169 236 / 0.55), transparent 70%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: var(--shadow-lg);
}
.cta-band img { border-radius: 14px; background: #fff; padding: 6px; }
.cta-band h2 { color: #fff; margin-top: 6px; }
.cta-band p { color: rgb(255 255 255 / 0.82); font-size: 1.1rem; max-width: 520px; }
.cta-band .btn { margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 56px 0 28px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__brand p { margin-top: 10px; color: var(--ink-3); font-size: 0.93rem; }
.site-footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer__links div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links h3 {
  font: 600 0.8rem/1.4 var(--font-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.site-footer__links a { color: var(--ink-2); font-size: 0.93rem; text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__legal { margin-top: 40px; color: var(--ink-3); }
.site-footer__legal small { display: block; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Policy / contact pages ---------- */

.prose-page { padding-top: 72px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.prose h1 + .muted { margin-top: 10px; font-size: 0.92rem; }
.prose h2 { font-size: 1.3rem; margin-top: 40px; }
.prose p, .prose ul { margin-top: 12px; color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .lead { margin-top: 16px; }
.notice {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: #5c4708;
  font-size: 0.93rem;
}
.notice + p { margin-top: 24px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.contact-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); color: var(--ink); }
.contact-card strong { display: block; }
.contact-card span { color: var(--brand-600); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row--reversed { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reversed .feature-row__text { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 440px); }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .hero__shot { margin-top: 40px; }
  .cta-row .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .frame__bar { height: 30px; }
  .frame__address { display: none; }
  .cta-band { padding: 48px 20px; border-radius: 20px; }
  .site-footer__links { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
