/* =========================================================
   PIANU — marketing site
   Layered on tokens.css. Values reproduce the
   "Pianu Marketing Site" design one-for-one.

   Deliberately no `box-sizing: border-box` reset: four
   elements below set an explicit width alongside a border
   (.step__icon, .card__icon, .trust__check, .confetti) and
   the design sizes them as content-box. A reset would
   silently shrink each by twice its border width.
   ========================================================= */

:root {
  --sec-x: 40px;   /* horizontal gutter, narrows at the breakpoints */
}

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--font-body);
}

a { color: var(--terracotta-500); text-decoration: none; }
a:hover { color: var(--terracotta-600); }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
}

.sec { padding-inline: var(--sec-x); }


/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  background: var(--paper);
}

.wordmark { display: block; height: 30px; width: auto; }

.btn-get {
  display: inline-flex;
  align-items: center;
  background: var(--terracotta-400);
  color: #fff;
  border: 2px solid var(--ink-900);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 3px 0 0 var(--terracotta-600);
}


/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 52px 60px;
  background: radial-gradient(100% 80% at 50% 0%, var(--sun-50), var(--paper) 70%);
  overflow: hidden;
  text-align: center;
}

.pin {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
}
.pin--left  { top: 60px;  left: 70px;  color: var(--terracotta-300); transform: rotate(-8deg); }
.pin--right { top: 120px; right: 80px; color: var(--teal-400);       transform: rotate(7deg); }

.hero-melo {
  display: block;
  height: 150px;
  margin: 0 auto 6px;
  animation: melobob 2.8s ease-in-out infinite;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 6px auto 18px;
  max-width: 720px;
  text-wrap: balance;
}

.hero-p {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0 auto 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-500);
}


/* ---------- App Store button ---------- */

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: #fff;
  border: 3px solid var(--ink-900);
  border-radius: 17px;
  padding: 13px 24px;
  box-shadow: 0 6px 0 0 rgba(31, 26, 20, 0.3);
}
.btn-store__icon  { width: 26px; height: 26px; }
.btn-store__label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store__pre   { font-family: var(--font-body); font-size: 11px; opacity: 0.85; }
.btn-store__name  { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.btn-store--lg { padding: 14px 26px; box-shadow: 0 6px 0 0 rgba(31, 26, 20, 0.28); }
.btn-store--lg .btn-store__icon { width: 28px; height: 28px; }
.btn-store--lg .btn-store__pre  { font-size: 12px; }
.btn-store--lg .btn-store__name { font-size: 22px; }


/* ---------- shared section headings ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--terracotta { color: var(--terracotta-500); }
.eyebrow--teal       { color: var(--teal-400); }

.rh2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.08;
  color: var(--ink-900);
  margin: 10px 0 0;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }


/* ---------- how it works ---------- */

.journey { padding-block: 66px 74px; background: var(--paper-2); }
.journey__head  { text-align: center; margin-bottom: 12px; }
.journey__track { position: relative; max-width: 940px; margin: 26px auto 0; }
.journey__steps { position: relative; gap: 24px; }

.jpath {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  overflow: visible;
}

.step { text-align: center; }
.step--mid { margin-top: 34px; }

.step__icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  border: 3px solid var(--ink-900);
  box-shadow: 0 5px 0 0 var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step__icon > img { display: block; }

.step--snap   .step__icon { background: var(--terracotta-400); }
.step--play   .step__icon { background: var(--teal-300); }
.step--polish .step__icon { background: var(--sun-300); }

.step__when {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 2px;
}
.step--snap   .step__when { color: var(--terracotta-500); }
.step--play   .step__when { color: var(--teal-500); }
.step--polish .step__when { color: var(--sun-500); }

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.step__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0 auto;
  max-width: 240px;
}


/* ---------- features ---------- */

.features { padding-block: 74px; background: var(--paper); }
.features__head { text-align: center; margin-bottom: 44px; }
.features__grid { gap: 28px; max-width: 980px; margin: 0 auto; }

.card {
  background: #fff;
  border: 3px solid var(--ink-900);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 7px 0 0 rgba(31, 26, 20, 0.14);
}
.card--a { transform: rotate(-1.5deg); }
.card--b { transform: rotate(1.5deg); margin-top: 12px; }
.card--c { transform: rotate(-1deg); }

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon > img { display: block; }

.card--a .card__icon { background: var(--terracotta-50); }
.card--b .card__icon { background: var(--teal-50); }
.card--c .card__icon { background: var(--sun-50); }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink-900);
  margin: 0 0 7px;
}
.card__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0;
}


/* ---------- parent trust ---------- */

.trust { padding-block: 66px; background: var(--teal-50); }

.grid2 {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--ink-900);
  border-radius: 30px;
  box-shadow: 0 8px 0 0 rgba(31, 26, 20, 0.14);
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.trust__melo-wrap { text-align: center; }
.trust__melo { display: block; height: 172px; margin: 0 auto; }

.trust__caption {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 24px;
  color: var(--terracotta-500);
  margin-top: 6px;
  transform: rotate(-4deg);
}

.trust__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink-900);
  margin: 0 0 18px;
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-700);
}
.trust__check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ---------- FAQ ---------- */

.faq { padding-block: 70px; background: var(--paper); }
.faq-title { font-size: 38px; margin: 0 0 32px; text-align: center; }

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--sun-50);
  border: 3px solid var(--ink-900);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 4px 0 0 rgba(31, 26, 20, 0.12);
}

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-900);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__x {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--terracotta-500);
  transition: transform 0.22s var(--ease-bounce);
}
.faq__item[open] .faq__x { transform: rotate(45deg); }

.faq__a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 12px 0 0;
}


/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding-block: 60px 68px;
  background: radial-gradient(110% 130% at 50% -10%, var(--sun-200), var(--sun-300));
  overflow: hidden;
  text-align: center;
}

.confetti {
  position: absolute;
  border: 2px solid var(--ink-900);
  animation: floaty 3.5s ease-in-out infinite;
}
/* The rotations only show once `floaty` stops — while it runs, its keyframes
   own `transform`. Same as the design. */
.confetti--1 { top: 40px;    left: 12%;  width: 16px; height: 16px; background: var(--terracotta-400); border-radius: 4px;  transform: rotate(20deg); }
.confetti--2 { top: 70px;    right: 14%; width: 14px; height: 14px; background: var(--teal-400);       border-radius: 50%;                           animation-duration: 4s;   animation-delay: 0.5s; }
.confetti--3 { bottom: 40px; left: 20%;  width: 14px; height: 14px; background: var(--note-b);         border-radius: 3px;  transform: rotate(-15deg); animation-duration: 4.4s; animation-delay: 0.8s; }

.cta__melo { display: block; height: 150px; margin: 0 auto 6px; }

.cta-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0 0 10px;
}
.cta__sub {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--terracotta-700);
  margin: 0 0 24px;
}


/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 30px;
  background: var(--paper-2);
  border-top: 2px solid var(--line);
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--terracotta-500);
}
.site-footer__links { display: flex; gap: 22px; }
.footer-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-500);
}
.footer-link:hover { color: var(--terracotta-600); }

.site-footer__legal {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-500);
}


/* ---------- motion ---------- */

@keyframes melobob { 0%, 100% { transform: translateY(0); }  50% { transform: translateY(-9px); } }
@keyframes floaty  { 0%, 100% { transform: translateY(0); }  50% { transform: translateY(-13px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-melo,
  .confetti { animation: none; }
  .faq__x { transition: none; }
}


/* ---------- breakpoints ---------- */

@media (max-width: 820px) {
  :root { --sec-x: 22px; }

  /* margin-inline centres .journey__steps, which has no auto margin of its own */
  .grid3 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .grid2 { grid-template-columns: 1fr; text-align: center; padding: 30px 26px; gap: 22px; }
  .rh2   { font-size: 29px; }
  .jpath { display: none; }
}

@media (max-width: 560px) {
  :root { --sec-x: 18px; }

  .site-header { flex-direction: column; gap: 14px; }
  .hero        { padding-block: 34px 42px; }
  .hero-h1     { font-size: 36px; }
  .hero-p      { font-size: 17px; }
  .pin         { display: none; }
  .rh2         { font-size: 26px; }
  .step--mid   { margin-top: 24px; }
  .cta-h2      { font-size: 32px; }
  .site-footer { flex-direction: column; gap: 14px; text-align: center; }
}
