/* PeekaSpeak website. Palette: Citrus & Teal (design/color-palette.md). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --lemon: #ffd43b;
  --tangerine: #ff8c2b;
  --peach: #ff9f80;
  --teal: #26b5a8;
  --bubblegum: #f48fb1;
  --sky: #7fb8ff;
  --leaf: #8fd9a8;
  --apricot: #fff3e8;
  --slate: #26313b;
  --slate-soft: #5a6772;
  --mist: #f4f8f7;
  --white: #ffffff;
  --seafoam: #dde7e4;
  --deep-teal: #0e7068;
  --teal-tint: #e3f2ef;

  --radius: 20px;
  --wrap: 1080px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: var(--deep-teal);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 8px 14px;
  z-index: 10;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--seafoam);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--slate);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand .peeka {
  color: var(--tangerine);
}
.brand .speak {
  color: var(--deep-teal);
}
.site-nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 1rem;
}
.site-nav a {
  color: var(--slate);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--deep-teal);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--deep-teal);
  color: var(--white);
}
.btn-primary:hover {
  background: #0b5d56;
}
.btn-ghost {
  border-color: var(--slate);
  color: var(--slate);
  background: transparent;
}

/* Hero */
.hero {
  background: var(--apricot);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--slate-soft);
  max-width: 34em;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-art {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.hero-art img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 12px 0 var(--lemon);
}
.store-note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--slate-soft);
}
.eyebrow {
  display: inline-block;
  background: var(--white);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--deep-teal);
  margin-bottom: 14px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section.alt {
  background: var(--mist);
}
.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}
.section-head p {
  color: var(--slate-soft);
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--seafoam);
  border-radius: var(--radius);
  padding: 24px;
}
.card p {
  margin: 0;
  color: var(--slate-soft);
}
.dot {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.bg-lemon {
  background: var(--lemon);
}
.bg-tangerine {
  background: var(--tangerine);
}
.bg-peach {
  background: var(--peach);
}
.bg-teal {
  background: var(--teal);
}
.bg-sky {
  background: var(--sky);
}
.bg-leaf {
  background: var(--leaf);
}
.bg-bubblegum {
  background: var(--bubblegum);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps > li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--seafoam);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--white);
  font-family: var(--head);
  font-weight: 600;
  margin-bottom: 12px;
}

.rating {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.rating li {
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 820px;
}
.plan {
  background: var(--white);
  border: 2px solid var(--seafoam);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.plan.best {
  border-color: var(--deep-teal);
}
.plan .tag {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--lemon);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 800;
  font-size: 0.85rem;
}
.price {
  font-family: var(--head);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0;
}
.price small {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-soft);
}
.plan ul {
  padding-left: 1.2em;
  margin: 12px 0 0;
  color: var(--slate-soft);
}
.fine {
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin-top: 20px;
  max-width: 46em;
}

/* Privacy band */
.promise {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}
.promise ul {
  margin: 0;
  padding-left: 1.2em;
}

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--seafoam);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  max-width: 800px;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details p {
  margin: 10px 0 0;
  color: var(--slate-soft);
}

/* Long-form pages (legal, support) */
.page-head {
  background: var(--mist);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--seafoam);
}
.page-head p {
  color: var(--slate-soft);
  margin: 0;
}
.prose {
  overflow-wrap: anywhere;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 64px;
}
.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--seafoam);
  padding: 10px 12px 10px 0;
}
.prose th {
  font-weight: 800;
}
.summary-box {
  background: var(--apricot);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 1.5em;
}
.summary-box ul {
  margin: 0;
}
.notice {
  background: #fff8d6;
  border: 2px dashed var(--tangerine);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
/* Facts still to fill in before launch (company name, address). */
.fill {
  background: #fff1a8;
  border-radius: 4px;
  padding: 0 4px;
}
.contact-cards .card h3 {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: #d9e1e6;
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--white);
}
.site-footer nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 240px;
    order: -1;
  }
  .section {
    padding: 44px 0;
  }
  .wrap {
    padding: 0 16px;
  }
  .promise {
    padding: 22px;
  }
}

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