:root {
  --background: #F7F2EA;
  --surface: #FFFDF9;
  --ink: #2B2622;
  --ink-secondary: #6E655C;
  --sunrise: #E08A3C;
  --on-sunrise: #2B2622;
  --sage: #7A9A7E;
  --border: #E6DDD2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--ink); }

h1, h2, h3 {
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-weight: 560;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

.bar, main, footer {
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.5rem;
  padding-top: 0.5rem;
}

.mark { font-family: Fraunces, Palatino, serif; }

.hero { text-align: center; padding: 1.5rem 0 0.5rem; }

.arc {
  width: 7.5rem;
  height: 3.75rem;
  margin: 0 auto 1.25rem;
  border: 6px solid var(--sunrise);
  border-bottom: 0;
  border-radius: 7.5rem 7.5rem 0 0;
}

.lede { color: var(--ink-secondary); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge[data-store="android"] img { height: 62px; margin: -7px 0; }
.store-badges.compact { margin-top: 0; margin-bottom: 8px; }
.store-badges.compact .store-badge img { height: 36px; }
.store-badges.compact .store-badge[data-store="android"] img { height: 46px; margin: -5px 0; }
.store-note { margin-top: 10px; font-size: 14px; opacity: 0.75; text-align: center; }
@media (max-width: 480px) {
  .store-badge img { height: 44px; }
  .store-badge[data-store="android"] img { height: 57px; }
  .store-badges.compact .store-badge img { height: 36px; }
  .store-badges.compact .store-badge[data-store="android"] img { height: 46px; }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button, button {
  display: inline-block;
  background: var(--sunrise);
  color: var(--on-sunrise);
  border: 0;
  border-radius: 14px;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.button.quiet, button.quiet {
  background: transparent;
  border: 1px solid var(--border);
}

button:disabled { opacity: 0.6; cursor: default; }

.phone {
  width: min(100%, 16rem);
  margin: 1.5rem auto 0;
  padding: 0.6rem;
  background: var(--ink);
  border-radius: 28px;
}

.phone-screen {
  background: var(--background);
  border-radius: 22px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
}

.phone-title { font-family: Fraunces, Palatino, serif; margin: 0.5rem 0 0.25rem; }
.phone-sub { color: var(--ink-secondary); font-size: 0.9rem; margin: 0 0 1rem; }
.phone .button { font-size: 0.95rem; }

section.card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  margin: 1rem 0;
}

ol.steps { margin: 0; padding-left: 1.2rem; }
ol.steps li { margin: 0.6rem 0; }

.plans { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.plan {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--background);
}
.plan strong { display: block; }
.plan span { color: var(--ink-secondary); font-size: 0.95rem; }
.plan.featured { border-color: var(--sunrise); }

label { display: block; margin-bottom: 0.25rem; }

input {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.9rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}

.note { color: var(--ink-secondary); font-size: 0.95rem; }
.note.error { color: #B65A4A; }

.dusk-preview {
  margin-top: 1rem;
  background: #1E1B18;
  color: #F3ECE2;
  border-radius: 20px;
  padding: 1.25rem;
}

.dusk-kicker { color: #F0A35A; margin: 0 0 0.35rem; font-size: 0.95rem; }
.dusk-title { font-family: Fraunces, Palatino, serif; font-size: 1.35rem; margin: 0; }
.dusk-sub { color: #B5AA9C; margin: 0.35rem 0 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 2rem;
  color: var(--ink-secondary);
}

@media (min-width: 720px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
    text-align: left;
  }
  .hero-grid .arc { margin-left: 0; }
  .hero-grid .store-badges { justify-content: flex-start; }
  .hero-grid .store-note { text-align: left; }
  .phone { margin: 0; }
}
