:root {
  --ink: #151c3b;
  --ink-soft: #3d4665;
  --muted: #6f7876;
  --blue: #3856a3;
  --blue-dark: #29458d;
  --mint: #ddf4ee;
  --mint-strong: #83dccd;
  --coral: #ff7f7c;
  --yellow: #ffd566;
  --lavender: #ece8ff;
  --cream: #f8f6f0;
  --white: #fff;
  --line: rgba(21, 28, 59, 0.12);
  --shadow: 0 22px 60px rgba(21, 28, 59, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--blue); }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(21, 28, 59, 0.08);
  background: rgba(248, 246, 240, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.goodwhen-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.goodwhen-brand img { width: 38px; height: 38px; border-radius: 11px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-nav a:hover { color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
}
.hero::before,
.hero::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
  opacity: 0.72;
}
.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -90px;
  background: var(--mint);
}
.hero::after {
  width: 280px;
  height: 280px;
  bottom: -170px;
  left: -90px;
  background: #ffe1dc;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 86, 163, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.eyebrow::before { width: 8px; height: 8px; border-radius: 99px; background: var(--coral); content: ""; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 5.8rem); }
.hero-copy > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(56,86,163,0.2); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.8); color: var(--ink); }
.launch-note { margin-top: 14px !important; color: var(--muted) !important; font-size: 14px !important; }

.phone {
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 11px;
  border: 2px solid #202020;
  border-radius: 44px;
  background: #111;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.phone img { display: block; border-radius: 34px; }

.section { padding: 82px 0; }
.section-white { background: var(--white); }
.section-mint { background: var(--mint); }
.section-heading { max-width: 700px; margin-bottom: 36px; }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading p { margin: 14px 0 0; color: var(--ink-soft); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(21,28,59,0.06);
}
.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--lavender);
  font-size: 21px;
}
.feature-card:nth-child(2) .feature-icon { background: #fff1c9; }
.feature-card:nth-child(3) .feature-icon { background: var(--mint); }
.feature-card h3 { margin: 0; font-size: 21px; }
.feature-card p { margin: 9px 0 0; color: var(--muted); }
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 22px; }
.screens-grid img {
  display: block;
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(21,28,59,0.15);
}
.screens-grid img:nth-child(2) { margin-top: 34px; }
.cta {
  padding: 40px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.cta p { max-width: 620px; margin: 14px auto 24px; color: rgba(255,255,255,0.75); }

.page-main { padding: 60px 0 90px; }
.page-shell { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 54px; align-items: start; }
.page-aside {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
}
.page-aside strong { display: block; margin-bottom: 8px; }
.page-aside a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.page-aside a:hover { color: var(--blue); }
.content-card {
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(21,28,59,0.06);
}
.content-card h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4rem); }
.content-card .updated { margin: 8px 0 32px; color: var(--muted); }
.content-card h2 { margin: 36px 0 12px; font-size: 24px; }
.content-card h3 { margin: 24px 0 8px; font-size: 19px; }
.content-card p, .content-card li { color: var(--ink-soft); }
.content-card ul, .content-card ol { padding-left: 22px; }
.content-card li + li { margin-top: 8px; }
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  border-radius: 0 14px 14px 0;
  background: #fff4f0;
}
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.support-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.support-card h3 { margin-top: 0; }
.support-card p { margin-bottom: 0; }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 800; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(21,28,59,0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(56,86,163,0.12); }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-row input { width: 18px; margin-top: 4px; }
.hidden { display: none; }

.site-footer { padding: 34px 0; background: var(--ink); color: rgba(255,255,255,0.76); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 820px) {
  .header-nav a:not(.support-link) { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone { width: 290px; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-shell { grid-template-columns: 1fr; }
  .page-aside { position: static; display: none; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .screens-grid { gap: 9px; }
  .screens-grid img { border-radius: 13px; }
  .screens-grid img:nth-child(2) { margin-top: 15px; }
  .cta { padding: 30px 20px; }
  .support-grid { grid-template-columns: 1fr; }
}
