/* RestroKing site. Hand-written, no framework. It has to open quickly on a
   shopkeeper's phone on a patchy connection, so: one stylesheet, two fonts,
   no trackers, and the only script on the site is the account-deletion form
   (which Google Play requires to work without installing the app). */

:root {
    --orange: #F26A0C;
    --orange-dark: #C4530A;
    --ink: #221D18;
    --muted: #6A615A;
    --line: #E6DCD3;
    --paper: #FCF9F6;
    --card: #FFFFFF;
    --dark: #241E19;
    --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 14px;
}
h1 { font-size: clamp(32px, 5.4vw, 52px); }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin-top: 0; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
a { color: var(--orange-dark); text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.lede { font-size: 19px; color: var(--muted); }
.small { font-size: 15px; color: var(--muted); }

/* ---------- header */
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--max); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bar > a:first-child { line-height: 0; }
.bar img { height: 34px; width: auto; }
nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--orange-dark); }

/* ---------- hero: text beside a real phone, not a centred stack */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 62px 0 54px; }
.hero .kicker {
    display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: .09em;
    text-transform: uppercase; color: var(--orange-dark); margin-bottom: 18px;
}
.hero p { font-size: 19.5px; color: var(--muted); max-width: 30em; }
.hero .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.hero .factline { margin-top: 26px; font-size: 15px; color: var(--muted); }
.hero .factline b { color: var(--ink); font-weight: 600; }

/* ---------- the phone */
.phone {
    width: 268px; margin: 0 auto; padding: 9px;
    background: #14100D; border-radius: 34px;
    box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 22px 44px -18px rgba(34,29,24,.55);
}
.phone img { width: 100%; display: block; border-radius: 26px; }
.phone.tilt { transform: rotate(-1.4deg); }
.phone.small { width: 216px; padding: 7px; border-radius: 28px; }
.phone.small img { border-radius: 21px; }

/* ---------- alternating feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 46px 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .shot { order: -1; }
.feature ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 7px 0; }
.feature li b { color: var(--ink); font-weight: 600; }

/* ---------- plain list of capabilities, no card grid */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; margin: 22px 0 0; }
.cols div { padding: 14px 0; border-top: 1px solid var(--line); }
.cols h3 { margin: 0 0 4px; }
.cols p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin: 26px 0 0; }
.steps li { list-style: none; counter-increment: s; }
.steps li::before {
    content: counter(s); display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff;
    font-weight: 700; font-size: 15px; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 4px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin: 30px 0; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.plan.featured { border: 2px solid var(--orange); box-shadow: 0 16px 40px -26px rgba(242,106,12,.7); }
.plan .flag { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.plan h3 { font-size: 24px; margin: 6px 0 2px; }
.plan .sub { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.plan .price { font-family: "Bricolage Grotesque", sans-serif; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price span { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .permonth { color: var(--muted); font-size: 15px; margin: 2px 0 18px; }
.plan ul { padding: 0; margin: 0; list-style: none; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—"; color: var(--muted); }

/* ---------- download block */
.download {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 36px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 26px 0 0;
}
.download p { color: var(--muted); }
.download p b { color: var(--ink); }
@media (max-width: 720px) {
  .download { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
}

/* ---------- misc */
.btn { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 28px; border-radius: 10px; }
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; color: var(--ink); }

.band { background: var(--dark); color: #F5EFE9; padding: 52px 0; margin: 56px 0 0; }
.band h2 { color: #fff; }
.band p { color: #CFC4BA; }
.band a { color: #FFC08A; }

.faq { border-top: 1px solid var(--line); padding: 22px 0; }
.faq h3 { margin: 0 0 6px; }
.faq p { margin: 0; color: var(--muted); }

.note { background: #FFF4E8; border-left: 3px solid var(--orange); padding: 14px 18px; margin: 24px 0; }

main { padding-bottom: 60px; }
.page { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px; margin-top: 26px; }
.page h1 { font-size: clamp(27px, 4vw, 36px); }
.page h2 { font-size: 22px; margin-top: 30px; }
.page ul { color: var(--muted); }
.page li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; margin-top: -8px; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 16px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.contact div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.contact strong { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact a, .contact span { font-size: 17.5px; }

footer { border-top: 1px solid var(--line); background: var(--card); padding: 30px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; }
footer nav a { font-size: 15px; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 34px; padding: 40px 0; }
    .hero .shot { order: -1; }
    .feature { grid-template-columns: 1fr; gap: 26px; }
    .feature:nth-child(even) .shot { order: 0; }
    .phone.tilt { transform: none; }
}
@media (max-width: 560px) {
    body { font-size: 16.5px; }
    .page { padding: 22px; border-radius: 14px; }
    .band { padding: 40px 0; }
    nav { gap: 16px; }
}


/* Account-deletion request form. The only form on the site, and the only page with
   a script: Play wants a deletion route that works without installing the app. */
.reqform { display: grid; gap: 6px; margin: 20px 0 8px; max-width: 520px; }
.reqform label { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.reqform .req { font-weight: 400; text-transform: none; color: var(--orange-dark); }
.reqform input, .reqform textarea {
    font: inherit; font-size: 16.5px; color: var(--ink); background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.reqform input:focus, .reqform textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.reqform textarea { resize: vertical; }
.reqform button {
    font: inherit; font-weight: 600; margin-top: 18px; justify-self: start;
    background: var(--orange); color: #fff; border: 0; border-radius: 10px; padding: 14px 28px; cursor: pointer;
}
.reqform button:hover { background: var(--orange-dark); }
.reqform button:disabled { background: var(--line); color: var(--muted); cursor: default; }

/* The honeypot. Off-screen rather than display:none, which the simpler bots skip,
   and already aria-hidden and out of the tab order so nobody meets it by accident. */
.reqform .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formstatus { font-size: 15px; margin: 14px 0 0; min-height: 1.4em; }
.formstatus.good { color: #1D7A4C; }
.formstatus.bad { color: #B4321E; }
