/*
  WHAT THIS FILE IS FOR
  The look of wakapals.com/plans (owner approved 2026-10-20: "clean and simple,
  like Apple / Spotify"): a heading with a Monthly/Yearly switch, three plain
  plan cards (Free, Crew 10 "Most popular", Crew Max) and, in Nigeria, a short
  payment form that opens under the cards after "Choose".
  WHERE IT IS USED
  Both plans pages: plans/naira/index.html (Nigeria, pay with Paystack) and
  plans/index.html (everyone else, prices in their own money).
*/
@font-face{font-family:Figtree;font-style:normal;font-weight:300 900;font-display:swap;src:url(/assets/fonts/figtree-latin.woff2) format("woff2")}

:root {
  --page: #FBF8F3;
  --card: #FFFFFF;
  --ink: #1C120B;
  --muted: #6B5B4B;
  --line: #EAE2D6;
  --orange: #F07A10;
  --soft: #F4EEE5;
  --done: #DCEFB5;
  --error: #FBD9C9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 'Figtree', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Top line: logo and "Get the app" */
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.top img { display: block; width: 155px; height: 32px; }
.top a.app { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }

/* Heading and the Monthly / Yearly switch */
.head { text-align: center; padding-top: 56px; padding-bottom: 36px; }
.head h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.head p { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.switch { display: inline-flex; margin-top: 28px; padding: 4px; background: var(--soft); border-radius: 999px; }
.switch button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.switch button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(28,18,11,.12); }
.switch small { color: var(--orange); font-weight: 700; font-size: 13px; margin-left: 4px; }

/* The three plan cards */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--ink); padding: 27px 23px; }
.plan .name { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.plan h2 { margin: 0; font-size: 20px; font-weight: 700; }
.label { font-size: 12px; font-weight: 700; color: var(--card); background: var(--ink); padding: 4px 10px; border-radius: 999px; }
.plan .for { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; min-height: 48px; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.small { margin: 4px 0 0; min-height: 22px; color: var(--muted); font-size: 14px; }
.btn { margin-top: 22px; display: block; width: 100%; text-align: center; padding: 13px 16px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; border: 1px solid var(--ink); background: var(--card); color: var(--ink); }
.btn.main { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--card); }
.btn[disabled] { opacity: .5; cursor: default; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.plan li::before { content: ''; width: 18px; height: 18px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%231C120B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }

.notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 24px; margin: 0; color: var(--muted); font-size: 14px; }
.where { text-align: center; color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* Nigeria: the payment form under the cards */
.pay { max-width: 520px; margin: 56px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.pay h3 { margin: 0; font-size: 20px; font-weight: 700; }
.pay .sum { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 22px; color: var(--muted); }
.pay .sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pay input[type=email] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; background: var(--card); }
.pay input[type=email]:focus { border-color: var(--ink); outline: none; }
.pay .hint { margin: 6px 0 20px; font-size: 13px; color: var(--muted); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.way { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.way[aria-pressed=true] { border: 2px solid var(--ink); padding: 11px 13px; }
.way b { display: block; font-size: 15px; font-weight: 700; }
.way span { font-size: 13px; color: var(--muted); }
.pay .btn { margin-top: 22px; }
.pay .safe { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.done { max-width: 520px; margin: 56px auto 0; padding: 18px 20px; border-radius: 16px; background: var(--done); }
.err { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--error); font-size: 15px; }
.fine { max-width: 620px; margin: 40px auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.fine a { color: var(--muted); }

.foot { padding-top: 56px; padding-bottom: 32px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
/* Language menu (website/i18n.js fills these): next to "Get the app" when there is
   room, always under the footer line (as in the designer's file). */
.top .lang { display: flex; align-items: center; margin-left: auto; margin-right: 18px; color: var(--ink); }
.lang-foot { display: flex; justify-content: center; margin-top: 14px; color: var(--ink); }
@media (max-width: 479px) { .top .lang { display: none; } }

@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
  .plan.best { order: -1; }
  .head { padding-top: 36px; padding-bottom: 28px; }
}
@media (max-width: 380px) { .ways { grid-template-columns: 1fr; } }
