/* Potato Assist public site + account pages. No framework, system fonts. */
:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --paper: #ffffff;
  --ink: #1b2420;
  --muted: #5d6862;
  --line: #dde2dc;
  --brand: #1f6f43;
  --brand-deep: #154f30;
  --brand-soft: #e5f1e9;
  --earth: #8a5a22;
  --earth-soft: #f6ecdc;
  --bad: #b3261e;
  --bad-soft: #fbe9e7;
  --warn-soft: #fff4d9;
  --warn-line: #e5c26a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 4px 16px rgba(20, 40, 30, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6.4vw, 48px); }
h2 { font-size: clamp(24px, 4.6vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.hi { color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- top bar ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.15; }
.logo-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .03em; flex: none;
}
.logo-hi { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--brand); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.linkbtn:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 720px) { .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--brand-deep); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: #fff; color: var(--bad) !important; border-color: #e7bcb8; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- landing ---------- */
.hero { padding: 40px 0 36px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 64px 0 56px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--earth); background: var(--earth-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 .hi-line { display: block; font-size: .62em; color: var(--brand-deep); font-weight: 600; margin-top: 10px; letter-spacing: 0; }
.lead { font-size: 19px; color: #36423c; max-width: 36em; }
.hero .btn-row { margin: 22px 0 10px; }
.hero-note { font-size: 14px; color: var(--muted); }

.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.timebar { margin: 0 0 18px; }
.timebar:last-child { margin-bottom: 0; }
.timebar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.timebar-top b { font-size: 17px; }
.bar { height: 14px; border-radius: 999px; background: #eceee8; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.bar.old > span { width: 100%; background: #c9a87a; }
.bar.new > span { width: 22%; background: var(--brand); }
.hero-card h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.hero-card .foot { font-size: 14px; color: var(--muted); margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }

.section { padding: 44px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head p { color: var(--muted); }

.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.section:not(.alt) .step { background: var(--paper); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: #3c4842; }
.step .hi { display: block; font-size: 15px; margin-top: 8px; }

.docs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.docs li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.grid2 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.checks.no li::before { width: 12px; height: 12px; top: 12px; left: 3px; border: 0; transform: none;
  background: linear-gradient(45deg, transparent 43%, var(--bad) 43%, var(--bad) 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--bad) 43%, var(--bad) 57%, transparent 57%); }

/* pricing */
.price-grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 820px) { .price-grid { grid-template-columns: 1fr 1.2fr 1fr; } }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.price.main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price .tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: #fff; background: var(--earth); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.price .amt { font-size: 40px; font-weight: 750; line-height: 1.1; margin: 4px 0; }
.price .amt small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price .was { color: var(--muted); font-size: 15px; }
.price .was s { color: var(--muted); }
.price ul { margin: 14px 0 0; padding-left: 20px; color: #3c4842; font-size: 15px; }
.price ul li { margin: 4px 0; }
.price-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* faq */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: #3c4842; }
.faq details > div p:last-child { margin: 0; }

.cta { text-align: center; padding: 52px 0; }
.cta p { color: var(--muted); }
.cta .btn-row { justify-content: center; margin-top: 18px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 22px 0 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { color: var(--ink); }
.foot-note { margin: 0; max-width: 60em; }

/* ---------- forms (signup / login / account) ---------- */
.auth { padding: 32px 0; }
.auth-box { max-width: 460px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 26px; margin-bottom: 4px; }
.auth-box .sub { color: var(--muted); margin-bottom: 18px; }
.fld { display: block; margin: 0 0 14px; }
.fld > .lbl { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.fld > .lbl .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.fld input, .fld select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #c9d1cb; border-radius: 10px; background: #fff;
}
.fld input:focus, .fld select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.fld input[aria-invalid="true"] { border-color: var(--bad); }
.fld .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.fld .ferr { display: block; font-size: 14px; color: var(--bad); margin-top: 4px; min-height: 0; }
.fld .ferr:empty { display: none; }
.prefix { display: flex; }
.prefix > span { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #c9d1cb; border-right: 0; border-radius: 10px 0 0 10px; background: #f1f3ef; color: var(--muted); }
.prefix > input { border-radius: 0 10px 10px 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 16px; }
.chk input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.form-err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 0 0 14px; }
.form-err:empty { display: none; }
.form-ok { background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 0 0 14px; }
.form-ok:empty { display: none; }
.auth-box .btn { width: 100%; }
.auth-alt { text-align: center; margin: 16px 0 0; font-size: 15px; }
.two { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }

/* ---------- account ---------- */
.acct { padding: 24px 0 8px; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.acct-head h1 { font-size: 26px; margin: 0; }
.acct-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .acct-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: 1 / -1; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.stat .v.big { font-size: 28px; }
@media (max-width: 420px) { .stat .v { font-size: 20px; } .stat .v.big { font-size: 22px; } .stat { padding: 10px; } }
.banner { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.banner.warn { background: var(--warn-soft); border: 1px solid var(--warn-line); }
.banner.good { background: var(--brand-soft); color: var(--brand-deep); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.preset {
  min-height: 52px; border: 1.5px solid #c9d1cb; border-radius: 12px; background: #fff; font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; color: var(--ink);
}
.preset .farmers { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.preset[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.recharge-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.recharge-row .fld { flex: 1 1 160px; margin: 0; }
.recharge-row .btn { flex: 1 1 160px; }
.pay-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

table.txns { width: 100%; border-collapse: collapse; font-size: 15px; }
table.txns th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.txns td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.txns td.num, table.txns th.num { text-align: right; white-space: nowrap; }
.amt-plus { color: var(--brand); font-weight: 600; }
.amt-minus { color: var(--ink); }
.kind { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #eef0ec; color: var(--muted); }
.kind.recharge { background: var(--brand-soft); color: var(--brand-deep); }
.kind.trial { background: var(--earth-soft); color: var(--earth); }
@media (max-width: 560px) {
  table.txns thead { display: none; }
  table.txns, table.txns tbody, table.txns tr, table.txns td { display: block; width: 100%; }
  table.txns tr { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  table.txns td { border: 0; padding: 0; }
  table.txns td.when { grid-column: 1; font-size: 13px; color: var(--muted); }
  table.txns td.what { grid-column: 1; grid-row: 1; }
  table.txns td.num.amt { grid-column: 2; grid-row: 1; }
  table.txns td.num.bal { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--muted); }
}
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }

ol.install { padding-left: 22px; margin: 10px 0 14px; }
ol.install li { margin: 6px 0; }
code, .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: #eef0ec; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.tokens { list-style: none; padding: 0; margin: 8px 0 0; }
.tokens li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.tokens li:first-child { border-top: 0; }
.tokens .t-main { min-width: 0; }
.tokens .t-label { font-weight: 600; overflow-wrap: anywhere; }
.tokens .t-meta { font-size: 13px; color: var(--muted); }

.phone-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr { width: 168px; height: 168px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; flex: none; display: grid; place-items: center; }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.phone-box .grow { flex: 1 1 200px; min-width: 0; }
.urlline { font-size: 14px; overflow-wrap: anywhere; }
.loading { padding: 40px 0; color: var(--muted); text-align: center; }

#toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; margin: 0 auto;
  background: #24302a; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px;
  opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s; pointer-events: none;
}
#toast.show { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 20px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .card { margin: 16px 0; }
dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.contact { grid-template-columns: 1fr; gap: 2px; } dl.contact dd { margin-bottom: 10px; } }
.docs-title { margin-top: 28px; }
.price .amt.amt-word { font-size: 30px; padding: 5px 0; }
.card h2.h3 { font-size: 21px; margin-bottom: 12px; }

/* before / after comparison */
.cmp { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-head { padding: 0 18px 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cmp-row { padding: 14px 18px; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-en { display: block; font-weight: 600; }
.cmp-step .hi { display: block; font-size: 14px; }
.cmp-k { display: none; }
.chip-you, .chip-auto { display: inline-block; font-size: 14px; font-weight: 600; border-radius: 12px; padding: 3px 12px; line-height: 1.35; }
.chip-you { background: var(--earth-soft); color: var(--earth); }
.chip-auto { background: var(--brand-soft); color: var(--brand-deep); }
.cmp-row.is-auto .cmp-hand .chip-you { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .85; }
.cmp-total { background: #f3f6f1; }
.cmp-total .cmp-hand b { color: var(--earth); }
.cmp-total .cmp-pa b { color: var(--brand-deep); font-size: 18px; }
@media (max-width: 640px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; align-items: start; }
  .cmp-step { grid-column: 1 / -1; }
  .cmp-k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
}
@media (min-width: 520px) { .recharge-row .btn { margin-top: 27px; } }
.email-ask { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.email-ask .btn { width: 100%; }

/* SMS code step */
.otp-step { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.otp-sent { background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 0 0 14px; }
.otp-sent .hi { display: block; font-size: 14px; color: var(--brand-deep); opacity: .85; }
.otp-input { font-size: 24px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.otp-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 15px; margin: -4px 0 14px; color: var(--muted); }
.otp-actions .linkbtn { color: var(--brand); text-decoration: underline; min-height: 32px; }
.otp-actions .linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
input[readonly] { background: #f1f3ef; color: var(--muted); }
