/* AdaptiveSteps product site: the app's outline-and-pastel look (DESIGN.md §10), light only. */

/*
 * Nunito, served from this site so no visitor's address goes to a third party (variable font, one file per
 * subset covers weights 600-900; SIL Open Font License, assets/fonts/OFL.txt).
 */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #3d4756;
  --secondary: #636e7e;
  --divider: #d5dae1;
  --track: #eef1f4;
  --cream: #fbf7ee;
  --butter: #f9dda0;
  --coral: #f4a8a0;
  --mint: #9ad67d;
  --mint-light: #cdebb9;
  --sky: #a9d3ee;
  --lavender: #b9b1cc;
  --gutter: 20px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--secondary);
}

.lead {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 20px);
}

.note {
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

/* Header */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.logo img {
  width: 36px;
  height: 36px;
}

.links {
  display: none;
  gap: 22px;
  font-weight: 800;
  font-size: 14px;
}

.links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 900;
  font-size: 13px;
}

.pill:hover {
  background: var(--butter);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 28px;
  padding-bottom: 36px;
}

.badge {
  display: inline-block;
  background: var(--mint-light);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-text .lead {
  margin-bottom: 22px;
  max-width: 520px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 6px 6px 0 var(--divider);
}

.store:hover {
  box-shadow: 6px 6px 0 var(--butter);
}

.hero-shots {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
}

/* On a phone the hero shows one screen; two side by side would run off the edge. */
@media (max-width: 899px) {
  .hero-shots .phone.small {
    display: none;
  }
}

/* Phone frames */

.phone {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 38px;
  background: #fff;
  overflow: hidden;
  width: min(300px, 70vw);
  flex: none;
}

.phone.small {
  width: min(220px, 50vw);
}

.phone.pair {
  width: min(230px, 44vw);
}

.phone.sky {
  box-shadow: 8px 8px 0 var(--sky);
}

.phone.mint {
  box-shadow: 8px 8px 0 var(--mint-light);
}

.phone.butter {
  box-shadow: 8px 8px 0 var(--butter);
}

/* Bands */

.band {
  background: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 40px 0;
}

.band + .band {
  border-top: 0;
}

.band .lead {
  color: var(--ink);
}

/* Features */

.feature {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 0 10px;
}

.num {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.feature-shots {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
}

/* Watch and widgets */

.split {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.tick {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
}

.mocks {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) 0 68%, var(--track) 68% 100%);
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #000;
}

.ring-light {
  background: conic-gradient(var(--mint) 0 78%, var(--track) 78% 100%);
}

.ring-light::after {
  background: #fff;
}

.ring-small {
  width: 44px;
  height: 44px;
}

.ring-small::after {
  inset: 7px;
}

.ring-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dce2ea;
}

.ring-text b {
  font-size: 20px;
  line-height: 1;
}

.ring-text small {
  font-size: 9px;
  color: #a0aab8;
  font-weight: 800;
}

.watch {
  width: 150px;
  height: 184px;
  border-radius: 40px;
  background: #000;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.watch-pill {
  background: var(--butter);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 900;
}

.widget {
  width: 150px;
  height: 150px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--mint-light);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-top b {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.widget-top small {
  font-size: 10px;
  color: var(--secondary);
  font-weight: 800;
}

.widget-card {
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 6px 10px;
}

.widget-card small {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.widget-card b {
  font-size: 13px;
  font-weight: 900;
}

/* Pricing */

#pricing {
  padding-top: 40px;
  padding-bottom: 40px;
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  flex: 1;
}

.offset {
  box-shadow: 6px 6px 0 var(--ink);
}

.plan-name {
  display: block;
  font-weight: 900;
  font-size: 15px;
  color: var(--secondary);
}

.plan-price {
  display: block;
  font-size: 34px;
  font-weight: 900;
  margin: 6px 0 2px;
}

.plan-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
}

/* FAQ */

.qa {
  border-top: 2px solid var(--divider);
  padding: 18px 0;
}

.qa:first-of-type {
  margin-top: 10px;
}

/* Closing call and footer */

.cta {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta .store {
  margin-top: 18px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  min-height: 70px;
  border-top: 2px solid var(--divider);
  padding-top: 16px;
  padding-bottom: 16px;
}

.foot-links a {
  margin-right: 16px;
}

.foot-links a:last-child {
  margin-right: 0;
}

.foot-links a:hover {
  text-decoration: underline;
}

/* Back to top: appears after one screen height of scrolling. */

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--butter);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
}

.to-top.shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .to-top {
    transition: none;
  }
}

/* Legal pages */

.legal {
  padding-top: 20px;
  padding-bottom: 60px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.legal h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.legal p {
  margin-bottom: 8px;
}

/* Desktop */

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }

  .links {
    display: flex;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-shots {
    gap: 26px;
  }

  .band {
    padding: 64px 0;
  }

  .feature {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 56px 0;
  }

  .feature.flip {
    flex-direction: row-reverse;
  }

  .feature-text {
    flex: 1;
    max-width: 460px;
  }

  .feature-shots {
    flex: 1;
    gap: 22px;
  }

  .phone.pair {
    width: 230px;
  }

  .feature .phone:not(.pair) {
    width: 280px;
  }

  .split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .split > div:first-child {
    flex: 1;
    max-width: 480px;
  }

  .split > .mocks {
    flex: 1;
    gap: 40px;
  }

  #pricing {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .plans {
    flex-direction: row;
    gap: 26px;
  }

  .cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
