/* PisoYarn landing page. Tokens mirror lib/app/theme/tokens.dart. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-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;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-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;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface2: #f0ede6;
  --border: #e4dfd5;
  --text: #16211f;
  --muted: #5a6562;
  --accent: #1f6f68;
  --accent-fill: #1f6f68;
  --accent-tint: #ddedea;
  --on-accent: #ffffff;
  --hero-bg: #1f6f68;
  --hero-text: #f6f4ef;
  --hero-muted: #c3dedA;
  --gold: #e5b23e;
  --on-gold: #3a2a05;
  --warn: #b4472f;
  --shadow: 0 1px 2px rgba(22, 33, 31, 0.05), 0 8px 24px rgba(22, 33, 31, 0.06);
  --phone-frame: #16211f;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-card: 24px;
  --r-tile: 20px;
  --max: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1615;
    --surface: #16201f;
    --surface2: #1e2a28;
    --border: #283533;
    --text: #ecf1ef;
    --muted: #9aa8a5;
    --accent: #62bcb2;
    --accent-fill: #237a71;
    --accent-tint: #17312e;
    --hero-bg: #174a45;
    --hero-text: #ecf1ef;
    --hero-muted: #a9cbc6;
    --warn: #ee8a70;
    --shadow: none;
    --phone-frame: #2b3836;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 12px;
  z-index: 10;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover {
  color: var(--text);
}
.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: var(--on-accent);
}
@media (max-width: 720px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-soft {
  background: var(--surface2);
  color: var(--text);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  position: relative;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.store strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}
.store[aria-disabled="true"] {
  cursor: default;
}
.store .soon {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  margin: 20px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 28px;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.notify {
  color: var(--muted);
  font-size: 15px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Phone mockups */
.phones {
  position: relative;
  height: 600px;
}
.phone {
  position: absolute;
  width: 270px;
  border-radius: 40px;
  padding: 10px;
  background: var(--phone-frame);
  box-shadow: 0 30px 60px rgba(22, 33, 31, 0.22);
}
.phone img {
  border-radius: 31px;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  width: 100%;
  background: var(--surface2);
}
.phone.front {
  left: 50%;
  top: 0;
  transform: translateX(-20%);
  z-index: 2;
}
.phone.back {
  left: 50%;
  top: 60px;
  transform: translateX(-80%) rotate(-6deg);
  opacity: 0.95;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phones {
    height: 520px;
  }
  .phone {
    width: 230px;
  }
  .phone.front {
    transform: translateX(-15%);
  }
  .phone.back {
    transform: translateX(-72%) rotate(-6deg);
  }
}

/* Sections */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head .label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  margin: 10px 0 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

/* Safe-to-spend band */
.band {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.band .label {
  color: var(--hero-muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.band h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 10px 0 14px;
}
.band p {
  color: var(--hero-muted);
  font-size: 18px;
  margin: 0;
}
.mini-hero {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 26px;
  position: relative;
  z-index: 1;
}
.mini-hero .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 8px;
}
.mini-hero .sub {
  color: var(--hero-muted);
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(195, 222, 218, 0.3);
  margin-top: 18px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 58%;
  background: var(--gold);
  border-radius: 99px;
}
.bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--hero-muted);
  margin-top: 10px;
}
.bar-row b {
  color: var(--gold);
}
@media (max-width: 800px) {
  .band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature .icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.feature code {
  font-family: var(--body);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.showcase figure {
  margin: 0;
}
.showcase .phone {
  position: static;
  width: 100%;
  box-shadow: 0 20px 40px rgba(22, 33, 31, 0.14);
}
.showcase figcaption {
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}
.showcase figcaption span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: repeat(4, 240px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .showcase figure {
    scroll-snap-align: start;
  }
}

/* Weekly review steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.checks svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.checks b {
  display: block;
}
.checks span {
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 800px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 4px 22px;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* CTA + footer */
.cta {
  text-align: center;
  background: var(--accent-tint);
  border-radius: 32px;
  padding: 56px 24px;
}
.cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}
.cta p {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 26px;
}
.cta .store-row {
  justify-content: center;
}
.quote {
  font-style: italic;
  color: var(--muted);
  margin-top: 22px;
}

.site-footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

/* Legal page */
.legal {
  max-width: 720px;
  padding: 48px 0 72px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 24px;
  margin: 36px 0 10px;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal .updated {
  color: var(--muted);
  margin: 0 0 28px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
