/* /addon and /private checkout. Owner rule 2026-10-13: nothing that is not the app's own.
   Files: ./app/* only (byte copies, see app/APP_ASSETS.md). Values: the app's paywall and design kit at
   commit 83ac70452 (lib/features/home/revamp/home_revamp_layout.dart = HRL, lib/features/subscription/
   widgets/paywall_style.dart = PC, paywall_slab.dart, paywall_toggle.dart, paywall_offer.dart,
   lib/ds/semantic_tokens.dart = HC, lib/design_kit/tokens.dart = HK). les_online/app_assets.test.mjs fails on
   any colour here that is not in that list. */
@font-face{font-family:"Nunito Sans";src:url("app/NunitoSans-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("app/NunitoSans-Medium.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("app/NunitoSans-SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("app/NunitoSans-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("app/NunitoSans-ExtraBold.ttf") format("truetype");font-weight:800;font-display:swap}
:root{
  --page:#FBF4EA;          /* HRL.page = PC.page */
  --ink:#14402B;           /* HRL.ink = PC.ink */
  --ink-deep:#0A2418;      /* HRL.inkDeep = PC.inkDeep */
  --ink-soft:#4F5E52;      /* PC.inkSoft */
  --kicker:#8A6A12;        /* PC.kicker */
  --cream-top:#FFFDF8;     /* HRL.tileLightTop = PC.creamTop */
  --cream-bottom:#FFF4E2;  /* HRL.tileLightBottom = PC.creamBottom */
  --cream-lip:#D6C6AB;     /* HRL.tileLightLip = PC.creamLip */
  --cream-border:#E3D5BC;  /* HRL.tileLightBorder = PC.creamBorder */
  --forest-top:#1F5C40;    /* HRL.tileDarkTop = PC.forestTop */
  --forest-mid:#14402B;    /* HRL.tileDarkMid = PC.forestMid */
  --forest-bottom:#103826; /* HRL.tileDarkBottom = PC.forestBottom */
  --forest-lip:#0A2418;    /* HRL.tileDarkLip = PC.forestLip */
  --forest-ink:#FFF9F1;    /* HRL.tileDarkInk = PC.forestInk */
  --action:#5C7B35;        /* HC.actionDefault (matcha400) */
  --action-lip:#3B4D27;    /* HC.actionLip (matcha200) */
  --on-action:#FFFFFF;     /* HC.textOnAction */
  --sale-face:#FFE7D6;     /* PC.saleFace */
  --sale-edge:#F0B48E;     /* PC.saleEdge */
  --sale-ink:#8C3A12;      /* PC.saleInk */
  --input-fill:#FFFFFF;    /* HK.pureWhite: the onboarding text-input fill */
  --hairline:#D1C7BB;      /* HK.hairline */
  --highlight:#FFFFFF;     /* PaywallSlab top highlight (Colors.white) */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font-family:"Nunito Sans",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,p{margin:0}
button,input{font:inherit;color:inherit}
a{color:inherit}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--forest-mid);outline-offset:3px}

/* Spacing: HK.HKSpacing 4 / 8 / 16 / 24 / 32. */
.shell{max-width:460px;margin:0 auto;padding:0 16px 32px}
.top{display:flex;align-items:center;gap:8px;min-height:56px}
.top img{width:40px;height:40px;border-radius:12.5%;display:block}  /* the launcher icon, shown masked like a phone shows it */
.top .app-name{font-size:16px;font-weight:800;color:var(--ink)}
.top .line{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--kicker);letter-spacing:.4px;text-transform:uppercase}

/* The paywall scene, whole (never cropped). */
.scene{margin:0 -16px}
.scene img{display:block;width:100%;height:auto}

.title{margin:16px 0 8px}
.kicker{font-size:11.5px;font-weight:700;color:var(--kicker)}               /* paywall kicker */
.title h1{margin-top:4px;font-size:22px;font-weight:900;line-height:1.12;color:var(--ink)} /* paywall headline 22/900 */
.copy{font-size:14px;font-weight:600;line-height:1.35;color:var(--ink-soft)}

/* Underline tabs = PaywallTierToggle: 44 face + 4, 16px names, 1.5 px cream hairline, 3 px forest underline 56% wide. */
.tabs{position:relative;display:flex;height:48px;margin:16px 0 0}
.tabs::before{content:"";position:absolute;left:0;right:0;bottom:2px;height:1.5px;background:var(--cream-border)}
.tabs button{position:relative;flex:1 1 0;height:44px;border:0;background:none;padding:0;cursor:pointer;font-size:16px;font-weight:700;color:var(--ink-soft)}
.tabs button[aria-pressed="true"]{font-weight:900;color:var(--ink)}
.tabs button[aria-pressed="true"]::after{content:"";position:absolute;left:22%;right:22%;bottom:-3.25px;height:3px;border-radius:2px;background:var(--forest-mid)}
.tab-note{margin:8px 0 0;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--ink-soft)}

/* Plan options = the paywall period option: 14/10 padding, radius 16, 1.5 px edge, 4 px lip, cream or forest. */
.plans{border:0;margin:24px 0 0;padding:0;min-width:0;display:grid;gap:16px}
.plan{position:relative;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:16px;border:1.5px solid var(--cream-border);background:linear-gradient(var(--cream-top),var(--cream-bottom));box-shadow:0 4px 0 var(--cream-lip);cursor:pointer;color:var(--ink)}
.plan input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.plan.selected{border-color:var(--forest-bottom);background:linear-gradient(var(--forest-top),var(--forest-bottom));box-shadow:0 4px 0 var(--forest-lip);color:var(--forest-ink)}
.plan:has(input:focus-visible){outline:3px solid var(--forest-mid);outline-offset:3px}
.plan-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.plan-name{font-size:13px;font-weight:800}
.plan-sub{font-size:11px;font-weight:600;color:var(--ink-soft)}
.plan.selected .plan-sub{color:var(--forest-ink)}
.plan-price{font-size:18px;font-weight:900;white-space:nowrap}
/* Crossed "normal" price + discount under each package price (owner order 2026-10-16), app sale colours. */
.plan-price-box{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.plan-was{font-size:12px;font-weight:700;color:var(--ink-soft);white-space:nowrap}
.plan.selected .plan-was{color:var(--forest-ink)}
.plan-off{font-size:10px;font-weight:800;color:var(--sale-ink);background:var(--sale-face);border:1px solid var(--sale-edge);border-radius:99px;padding:1px 7px;white-space:nowrap}

/* Form card = PaywallSlab in cream (radius 18, 2 px border, 6 px lip, white top highlight .85). */
.slab{position:relative;margin:24px 0 0;padding:16px;border-radius:18px;border:2px solid var(--cream-border);background:linear-gradient(var(--cream-top),var(--cream-bottom));box-shadow:0 6px 0 var(--cream-lip)}
.slab::before{content:"";position:absolute;left:12.6px;right:12.6px;top:3px;height:2px;border-radius:2px;background:var(--highlight);opacity:.85}
.slab h2{font-size:16px;font-weight:800;color:var(--ink)}
.slab>p{margin:4px 0 16px;font-size:12.5px;font-weight:600;color:var(--ink-soft)}
.field+.field{margin-top:16px}
.field label{display:block;margin-bottom:4px;font-size:13px;font-weight:800;color:var(--ink)}
/* Text input = the onboarding input: white fill, radius 12 (HK.input), hairline edge. */
.field input{width:100%;min-height:48px;padding:12px 16px;border-radius:12px;border:1px solid var(--hairline);background:var(--input-fill);font-size:16px;color:var(--ink)}
.field input::placeholder{color:var(--ink-soft);opacity:.7}
.field input[aria-invalid="true"]{border-color:var(--sale-edge);background:var(--sale-face)}

.bonus .kicker{margin-bottom:4px}
.bonus .tabs{margin-top:8px}
.bonus .field{margin-top:16px}
.hint{margin:8px 0 0;font-size:11px;font-weight:600;line-height:1.35;color:var(--ink-soft)}

/* The paywall's flat note (no lip: it tells, it does not act), in the sale colours. */
.note{margin:16px 0 0;padding:10px 14px;border-radius:16px;border:1.5px solid var(--sale-edge);background:var(--sale-face);color:var(--sale-ink);font-size:13px;font-weight:700;line-height:1.35}

/* Primary button = the paywall action slab: one green, ink border, radius 20, 6 px lip, 56 high, 18/900 white. */
.action{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:56px;margin:24px 0 6px;padding:0 16px;border-radius:20px;border:2px solid var(--ink);background:var(--action);box-shadow:0 6px 0 var(--action-lip);color:var(--on-action);font-size:18px;font-weight:900;text-decoration:none;cursor:pointer;transition:transform .12s,box-shadow .12s}
.action::before{content:"";position:absolute;left:14px;right:14px;top:3px;height:2px;border-radius:2px;background:var(--highlight);opacity:.35}
.action:active:not(:disabled){transform:translateY(3.6px);box-shadow:0 2.4px 0 var(--action-lip)}
.action:disabled{opacity:.55;cursor:default}
.after-action{margin:8px 0 0;text-align:center;font-size:12px;font-weight:600;color:var(--ink-soft)}
.text-link{display:block;margin:16px auto 0;padding:12px 4px;border:0;background:none;cursor:pointer;text-align:center;font-size:14px;font-weight:800;color:var(--ink);text-decoration:underline;text-underline-offset:3px}

.help{margin:24px 0 0;text-align:center;font-size:12px;font-weight:600;line-height:1.6;color:var(--ink-soft)}
.help a{font-weight:800;color:var(--ink)}
.foot{margin:16px 0 0;text-align:center;font-size:12px;font-weight:600;color:var(--ink-soft)}

/* Result page. */
.result{text-align:center}
.result .copy{margin-top:8px}
.order{text-align:left}
.slab.order p{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;padding:4px 0}
.order span{font-size:11px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
.order strong{font-size:13px;font-weight:800;color:var(--ink);text-align:right;overflow-wrap:anywhere}
.order .ref{font-size:11px;word-break:break-all}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
