/* RESET — wereset.live
   Colors, type and radii follow the 03A brand book (brand/03A). */

:root {
  --ink: #172D28;
  --green: #2C9E79;
  --deep: #166B50;
  --paper: #F6F7F1;
  --mist: #E1EDE5;
  --muted: #54695F;
  --white: #FFFFFF;
  --line: rgba(23, 45, 40, 0.12);
  --line-strong: rgba(23, 45, 40, 0.2);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-card: 12px;
  --radius-button: 10px;

  --wrap: 1160px;
  --gutter: 24px;

  color-scheme: light;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--deep);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 241, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

/* The lockup SVG carries its own clear space (1/6 of the bolt height),
   so 172px wide keeps the visible artwork above the 160px minimum. */
.brand { display: inline-flex; margin-left: -11px; }
.brand img { width: 172px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.nav a:not(.btn):hover { color: var(--deep); }

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--deep); color: var(--white); }
.btn--primary:hover { background: #125C44; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--lg { min-height: 56px; padding: 14px 24px; font-size: 16px; }

/* ---------- Store buttons ----------
   Each store has a "soon" and a "live" version in the markup.
   <html data-ios="soon|live" data-android="off|soon|live"> picks which one shows;
   assets/site.js sets those from one config. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 176px;
  min-height: 60px;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  text-decoration: none;
  line-height: 1.15;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.store__small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.store__big { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

.store--live { background: var(--deep); color: var(--white); }
.store--live:hover { background: #125C44; }
.store--live:active { transform: translateY(1px); }

/* "Coming soon" reads as a status, not a button: a quiet Mist surface, no border. */
.store--soon {
  background: var(--mist);
  color: var(--ink);
  cursor: default;
}
.store--soon .store__small { color: var(--muted); }

/* On RESET Green: white buttons with Ink text; soon states sit on Deep Green
   so their small text keeps 6.46:1. */
.on-green .store--live { background: var(--white); color: var(--ink); }
.on-green .store--live:hover { background: var(--paper); }
.on-green .store--soon { background: var(--deep); color: var(--white); }
.on-green .store--soon .store__small { color: var(--white); }

@media (max-width: 560px) {
  .stores { width: 100%; }
  .store { flex: 1 1 140px; min-width: 0; padding: 10px 14px; }
  .store__big { font-size: 18px; }
}

html[data-ios="soon"] [data-store="ios"][data-when="live"],
html[data-ios="live"] [data-store="ios"][data-when="soon"],
html[data-android="off"] [data-store="android"],
html[data-android="soon"] [data-store="android"][data-when="live"],
html[data-android="live"] [data-store="android"][data-when="soon"] { display: none; }

/* Text that differs before and after launch. */
html[data-ios="soon"] [data-launch="live"],
html[data-ios="live"] [data-launch="soon"] { display: none; }

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 660 / 1434;
  padding: 9px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(23, 45, 40, 0.45);
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 39px;
  background: var(--paper);
}

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

.hero { padding: 40px 0 96px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero__eyebrow img { width: 22px; height: auto; margin: -4px -2px -4px -4px; }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(52px, 8.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 24px;
  max-width: 30em;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--muted);
}

.hero .stores { margin-top: 32px; }

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.hero__art {
  position: relative;
  height: 640px;
  border-radius: var(--radius-card);
  background: var(--mist);
  overflow: hidden;
}

/* The one angled accent on the page: it carries the bolt's forward lean. */
.hero__art::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  width: 46%;
  height: 34%;
  background: var(--green);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
}

.hero__art .phone { position: absolute; }
.hero__art .phone--back {
  width: 250px;
  right: 7%;
  top: 72px;
}
.hero__art .phone--front {
  width: 290px;
  left: 11%;
  top: 112px;
}

.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 16px 40px -16px rgba(23, 45, 40, 0.35);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  width: max-content;
}
.chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
}
.chip small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.hero__art .chip { left: 5%; bottom: 72px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__art .phone--front { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__art .phone--back { animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__art .chip { animation: rise 0.7s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 960px) {
  .hero { padding: 24px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { height: 560px; }
  .hero__art .phone--front { left: 50%; margin-left: -250px; }
  .hero__art .phone--back { right: auto; left: 50%; margin-left: 10px; }
}

@media (max-width: 560px) {
  .hero__art { height: 480px; }
  .hero__art .phone--front { width: 236px; left: 8%; margin-left: 0; top: 80px; }
  .hero__art .phone--back { width: 200px; left: auto; right: -40px; margin-left: 0; top: 48px; }
  .hero__art .chip { left: 16px; bottom: 32px; }
}

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

.section { padding: 96px 0; }
.section--tight-top { padding-top: 32px; }

.section__head { max-width: 720px; }
.section__head h2 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
}
.section__head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
}
.steps h3 { margin-top: 16px; font-size: 26px; line-height: 1.15; }
.steps p { margin-top: 10px; color: var(--muted); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.feature + .feature { margin-top: 112px; }

.feature__art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 600px;
  padding-top: 56px;
  border-radius: var(--radius-card);
  background: var(--mist);
  overflow: hidden;
}
.feature__art .phone {
  width: 310px;
  margin-bottom: -150px;
}

.feature--flip .feature__art { order: 2; }

.feature__art { position: relative; }
.feature__art .chip { left: 50%; bottom: 72px; transform: translateX(-50%); }
.chip__avatar { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--green); }
.chip__pill {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}

.feature__text h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.04;
}
.feature__text > p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  max-width: 30em;
}

.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature + .feature { margin-top: 80px; }
  .feature--flip .feature__art { order: 0; }
  .feature__art { height: 480px; padding-top: 40px; }
  .feature__art .phone { width: 260px; margin-bottom: -130px; }
}

/* Two-up cards */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 112px;
}
.duo__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--mist);
  overflow: hidden;
}
.duo__text { padding: 40px 40px 0; }
.duo__text h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.08;
}
.duo__text p { margin-top: 12px; color: var(--muted); max-width: 28em; }
.duo__art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 380px;
  margin-top: auto;
  padding-top: 40px;
  overflow: hidden;
}
.duo__art .phone { width: 280px; }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; margin-top: 80px; }
  .duo__text { padding: 32px 24px 0; }
  .duo__art { height: 340px; }
  .duo__art .phone { width: 250px; }
}

/* Rules band */

.rules {
  background: var(--ink);
  color: var(--paper);
}
.rules .section__head .label { color: var(--mist); }
.rules .section__head p { color: rgba(246, 247, 241, 0.78); }

.rules__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.rule {
  padding-top: 24px;
  border-top: 1px solid rgba(246, 247, 241, 0.2);
}
.rule__num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
}
.rule h3 { margin-top: 16px; font-size: 22px; }
.rule p { margin-top: 8px; color: rgba(246, 247, 241, 0.78); }

@media (max-width: 820px) {
  .rules__grid { grid-template-columns: 1fr; gap: 24px; }
  .rule__num { font-size: 52px; }
}

/* Built for iPhone */

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.perk {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-button);
  background: var(--mist);
  color: var(--deep);
}
.perk__icon svg { width: 24px; height: 24px; }
.perk h3 { margin-top: 20px; font-size: 20px; }
.perk p { margin-top: 6px; font-size: 16px; color: var(--muted); }

@media (max-width: 900px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; }
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq .section__head { position: sticky; top: 104px; }

.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166B50' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s ease;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 48px 24px 0; color: var(--muted); }
.qa details p + p { margin-top: -12px; }
.qa a { color: var(--deep); font-weight: 600; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq .section__head { position: static; }
  .qa summary { font-size: 19px; }
  .qa details p { padding-right: 0; }
}

/* Final call to action */

.cta {
  background: var(--green);
  color: var(--white);
  text-align: left;
}
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 {
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
/* White on RESET Green is 3.35:1, so text here stays large (24px+). */
.cta p {
  margin-top: 20px;
  font-size: 24px;
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
}
.site-footer .brand img { width: 172px; }
.site-footer__tag { margin-top: 8px; color: var(--muted); font-size: 15px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--deep); text-decoration: underline; }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Simple pages (support, legal, shared links, 404) ---------- */

.page { padding: 56px 0 96px; }
.page .wrap { max-width: calc(760px + var(--gutter) * 2); }
.page h1 {
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
}
.page__lead {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
}

.prose { margin-top: 40px; }
.prose > p:first-child {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 14px;
  font-weight: 500;
}
.prose h2 {
  margin-top: 48px;
  font-size: 26px;
  line-height: 1.2;
}
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p, .prose ul { margin-top: 14px; color: #2A403A; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--deep); font-weight: 600; }

.card {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
}
.card h2 { font-size: 26px; }
.card p { margin-top: 8px; color: var(--muted); }
.card .btn { margin-top: 20px; }

.help-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.help-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}
.help-list strong { font-weight: 600; }
.help-list span { color: var(--muted); }
@media (max-width: 600px) {
  .help-list li { grid-template-columns: 1fr; }
}

.center-page {
  min-height: calc(100vh - 72px - 150px);
  display: grid;
  place-items: center;
  padding: 64px 0;
  text-align: center;
}
.center-page .wrap { max-width: calc(560px + var(--gutter) * 2); }
.center-page .bolt { width: 72px; margin: 0 auto; }
.center-page h1 {
  margin-top: 20px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.center-page p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.center-page .stores, .center-page .actions { justify-content: center; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center-page .link-row { margin-top: 20px; font-size: 15px; }
.center-page .link-row a { color: var(--deep); font-weight: 600; }
