/* ============================================================
   ClipVault — DuckPak-inspired landing page
   Fredoka (display) + Poppins (body), warm off-white + orange
   ============================================================ */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --orange:   #F26B21;
  --yellow:   #FFC72C;
  --purple:   #5B4DE0;
  --paper:    #F7F4EF;
  --ink:      #231F1C;
  --muted:    #8A8078;
  --card:     #FFFFFF;
  --line:     #231F1C;
  --radius:   28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--orange);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Orange frame + paper canvas ---- */
.frame {
  padding: clamp(14px, 3vw, 40px);
  min-height: 100vh;
}
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(35,31,28,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,31,28,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(35,31,28,.22);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 4px 0 var(--line);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn .arrow { font-weight: 700; }

/* ---- Nav ---- */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: clamp(16px, 2.4vw, 26px);
  padding: 12px 22px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a, .nav-plain {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-plain:hover { color: var(--purple); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.2px;
}
.wordmark-logo { width: 28px; height: 28px; border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 18px; justify-self: end; }

/* ---- Hero ---- */
.hero { text-align: center; padding: clamp(30px, 6vw, 70px) 20px 0; }
.eyebrow {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
}
.eyebrow.center { text-align: center; }
.headline {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(66px, 13vw, 168px);
  line-height: .92;
  letter-spacing: -2px;
  margin: 4px 0 0;
}
.headline .dot { color: var(--orange); }
.subhead {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.5vw, 19px);
  color: #4a443f;
}
.subhead em { font-style: normal; color: var(--purple); font-weight: 600; }
.hero .btn-lg { margin-top: 34px; }
.hero-meta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ---- Circle rail ---- */
.rail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 2.5vw, 34px);
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(30px, 5vw, 60px);
}
.circle {
  width: clamp(120px, 15vw, 190px);
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.circle-feature { background: var(--purple); border-color: var(--line); }
.circle-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.circle-label.light { color: #fff; }
.circle .ic {
  width: 42px; height: 42px;
  fill: none; stroke: var(--ink); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.mini-history { display: flex; flex-direction: column; gap: 6px; width: 54px; }
.mini-history span { height: 9px; border-radius: 4px; background: #E7E0D4; }
.mini-history span.hl { background: var(--yellow); }
.kbd-combo { display: flex; gap: 6px; }
.kbd-combo kbd {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 9px;
  min-width: 34px;
  padding: 4px 0;
  box-shadow: 0 3px 0 var(--line);
}

/* ---- Section shells ---- */
section { padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
.section-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -1px;
  text-align: center;
  margin: 8px 0 0;
}
.section-title.center { text-align: center; }

/* ---- Features ---- */
.features { padding-top: clamp(50px, 7vw, 90px); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: clamp(34px, 4vw, 54px) auto 0;
}
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 6px 0 rgba(35,31,28,.12);
}
.card h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 21px;
  margin: 16px 0 8px;
}
.card p { font-size: 14.5px; color: #55504a; }
.card-icon {
  width: 54px; height: 54px;
  border: 2px solid var(--line);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--ink); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-yellow { background: var(--yellow); }
.icon-purple { background: var(--purple); }
.icon-purple svg { stroke: #fff; }
.icon-orange { background: var(--orange); }
.icon-orange svg { stroke: #fff; }

/* ---- How it works ---- */
.how { padding-top: clamp(60px, 8vw, 100px); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: clamp(34px, 4vw, 52px) auto 0;
}
.step {
  text-align: center;
  padding: 30px 22px;
  border: 2px dashed rgba(35,31,28,.35);
  border-radius: 22px;
}
.step-num {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 22px;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 50%;
}
.step h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: #55504a; }

/* ---- Download CTA ---- */
.download { padding-top: clamp(64px, 9vw, 110px); }
.download-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--orange);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(38px, 6vw, 64px) 28px;
  color: var(--ink);
}
.download-logo {
  width: 92px; height: 92px;
  border-radius: 22px;
  border: 2px solid var(--line);
  box-shadow: 0 8px 0 rgba(35,31,28,.25);
}
.download-card h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04;
  margin: 22px 0 0;
  color: #fff;
}
.download-card .hl-text { color: var(--yellow); }
.download-card p { max-width: 480px; margin: 16px auto 0; color: #fff2e8; font-size: 15px; }
.download-card .btn-lg { margin-top: 28px; }
.tiny { font-size: 12.5px !important; color: #ffd9c2 !important; margin-top: 14px !important; }

/* Subtle live download counter — quiet text under the button */
.dl-count {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  color: #ffe;
  opacity: .82;
}
.dl-count strong { font-weight: 700; opacity: 1; }

/* ---- FAQ ---- */
.faq { padding-top: clamp(64px, 9vw, 110px); }
.faq-list { max-width: 720px; margin: clamp(28px, 3vw, 44px) auto 0; }
details {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  margin-bottom: 14px;
}
summary {
  list-style: none;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; color: var(--purple); font-family: "Poppins"; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 18px; color: #55504a; font-size: 15px; }

/* ---- Footer ---- */
.footer {
  margin-top: clamp(60px, 8vw, 100px);
  padding: 34px clamp(20px, 4vw, 56px);
  border-top: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Fredoka"; font-weight: 700; font-size: 20px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-copy { color: var(--muted); font-size: 13.5px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .rail { gap: 16px; }
  .circle { width: clamp(110px, 40vw, 150px); }
}
@media (max-width: 520px) {
  .nav-plain { display: none; }
  .footer { flex-direction: column; text-align: center; }
}
