/* Landing page (frontend/index.html). The planner's own styles live in main.css etc. */

:root {
  --primary: #0077BE;
  --primary-dark: #005A8F;
  --primary-tint: #E3F1FA;
  --accent: #00C9A7;
  --secondary: #FF6B35;
  --paper: #FFFFFF;
  --paper-2: #F4F6F8;
  --ink: #1A2332;
  --ink-2: #4B5A6B;
  --ink-3: #7F8C8D;
  --line: rgba(26, 35, 50, .12);
  --navy: #1A2332;
  --navy-2: #233044;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --r: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased
}

a {
  color: var(--primary)
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.01em
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px
}

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 640px
}

section {
  padding: 72px 0
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: .15s
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-dark)
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35)
}

.btn-ghost:hover {
  border-color: #fff
}

.btn-outline {
  color: var(--primary);
  border-color: var(--primary)
}

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 35, 50, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  color: #fff
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.mark .i {
  width: 20px;
  height: 20px
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px
}

.nav a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px
}

.nav .btn {
  padding: 9px 16px;
  font-size: 14px;
  color: #fff
}

/* hero */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, #2b4a6e 0%, var(--navy) 55%);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden
}

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

.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -.02em
}

.hero h1 em {
  font-style: normal;
  color: #7FD4FF
}

.hero .lede {
  color: rgba(255, 255, 255, .78);
  margin: 20px 0 30px
}

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

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55)
}

.shots {
  position: relative;
  padding-bottom: 40px
}

.frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  background: #0f1620
}

.frame .bar {
  height: 28px;
  background: #0f1620;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px
}

.frame .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4756;
  display: block
}

.phone {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 31%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 6px #0f1620
}

.wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px
}

/* strip */
.strip {
  background: var(--paper-2);
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2)
}

.strip b {
  color: var(--ink);
  font-weight: 500
}

/* uses */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px
}

.use {
  padding: 26px 24px 24px;
  background: var(--paper-2);
  border-radius: var(--r)
}

.use .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.use h3 {
  font-size: 19px;
  margin-bottom: 8px
}

.use p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px
}

.card p a, .use p a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 119, 190, .35)
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--paper-2);
  border-radius: var(--r)
}

.step .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px
}

/* features */
.features {
  background: var(--paper-2)
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px
}

.card .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.card h3 {
  font-size: 17px;
  margin-bottom: 6px
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px
}

/* coverage */
.cover .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center
}

.places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px
}

.places span {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 500
}

.coverbox {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 35, 50, .18)
}

/* faq */
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line)
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 400
}

.faq details[open] summary::after {
  content: '–'
}

.faq p {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 760px
}

/* final cta */
.final {
  background: var(--navy);
  color: #fff;
  text-align: center
}

.final h2 {
  color: #fff
}

.final .lede {
  color: rgba(255, 255, 255, .75);
  margin: 14px auto 28px
}

footer {
  background: #0f1620;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  padding: 32px 0
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start
}

footer a {
  color: rgba(255, 255, 255, .8)
}

.disc {
  max-width: 560px;
  line-height: 1.5
}

@media (max-width:820px) {
  section {
    padding: 56px 0
  }

  .nav a:not(.btn) {
    display: none
  }

  .hero {
    padding-top: 48px
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .hero .lede {
    font-size: 16px
  }

  .phone {
    width: 34%;
    right: 0
  }

  .steps,
.uses,
.grid {
    grid-template-columns: 1fr
  }

  .cover .wrap {
    grid-template-columns: 1fr;
    gap: 32px
  }
}

/* tides section: screenshot on the left on desktop (DOM stays text-first for phones) */
.cover--flip .wrap > .coverbox {
  order: -1
}

/* a 7th feature card sits centred in the last row instead of orphaned left */
.grid .card:last-child:nth-child(3n+1) {
  grid-column: 2
}

@media (max-width:820px) {
  .cover--flip .wrap > .coverbox {
    order: 0
  }

  .grid .card:last-child:nth-child(3n+1) {
    grid-column: auto
  }
}
