/* RestoSketch website — new style (matches the iPhone app)
   Navy + cyan, thin type, grouped gradient cards, calm spacing. */

:root {
  --bg: #050d18;
  --bg2: #07121f;
  --ink: #f3f8fc;
  --muted: #8fa4b8;
  --soft: #b6c7d6;
  --cyan: #22d3ee;
  --blue: #2f7cf6;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(34, 211, 238, .28);
  --card-a: rgba(17, 38, 60, .92);
  --card-b: rgba(8, 21, 36, .92);
  --tile: rgba(34, 211, 238, .12);
  --radius: 22px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(34, 211, 238, .09), transparent 70%),
    linear-gradient(180deg, #050d18 0%, #040a14 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.ambient, .orbit { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 13, 24, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  inset: auto;
}
.site-header.scrolled { background: rgba(5, 13, 24, .88); }
.nav-wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 300; }
.brand img { border-radius: 11px; width: 36px; height: 36px; box-shadow: none; }
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 300; }
.brand-name b { font-weight: 500; color: var(--cyan); }
.desktop-nav { display: flex; gap: 26px; margin-left: auto; margin-right: 18px; }
.desktop-nav a { color: var(--soft); font-size: .9rem; font-weight: 300; transition: color .2s; }
.desktop-nav a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 12px; position: relative; cursor: pointer; }
.menu-button span { display: block; width: 17px; height: 1.5px; background: #fff; position: absolute; left: 12px; transition: .2s; }
.menu-button span:first-child { top: 16px; }
.menu-button span:last-child { top: 24px; }
.menu-button.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-size: .95rem; font-weight: 500; letter-spacing: .005em;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: linear-gradient(100deg, #2f7cf6, #22d3ee);
  box-shadow: 0 10px 30px rgba(34, 150, 240, .22);
}
.button-primary:hover { box-shadow: 0 14px 36px rgba(34, 190, 240, .3); }
.button-secondary, .button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
}
.button-secondary:hover, .button-ghost:hover { border-color: var(--line-strong); background: rgba(34, 211, 238, .06); }
.button-ghost { min-height: 38px; padding: 0 16px; font-size: .85rem; font-weight: 400; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font); color: var(--ink); }
h1 { font-weight: 200; font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-weight: 250; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-weight: 450; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0; }
.r-kicker, .section-kicker, .eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan);
  background: none; border: 0; padding: 0;
}
.lede { color: var(--soft); font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 300; line-height: 1.65; }

/* ---------- Sections ---------- */
.r-section { padding: 84px 0; }
.r-section.tight { padding: 56px 0; }
.r-head { max-width: 680px; margin-bottom: 36px; }
.r-head.center { margin-inline: auto; text-align: center; }
.r-head h2 { margin-top: 12px; }
.r-head p { margin-top: 14px; color: var(--soft); font-size: 1.02rem; }

/* ---------- Hero ---------- */
.r-hero { padding: 84px 0 56px; }
.r-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.r-hero h1 { margin: 16px 0 20px; }
.r-hero h1 em { font-style: normal; color: var(--cyan); font-weight: 200; }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.r-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: .84rem; }
.r-proof span::before { content: "✓"; color: var(--cyan); margin-right: 7px; }
.r-page-hero { padding: 76px 0 36px; }
.r-page-hero h1 { margin: 14px 0 16px; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.r-page-hero p { max-width: 640px; color: var(--soft); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.r-card, .r-group {
  background: linear-gradient(150deg, var(--card-a), var(--card-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.r-card { padding: 26px; }
.r-card h3 { margin: 16px 0 8px; }
.r-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.r-grid { display: grid; gap: 16px; }
.r-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.r-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.r-tile {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--tile); color: var(--cyan);
}
.r-tile svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* grouped list, like the app's Profile menu */
.r-group { overflow: hidden; }
.r-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.r-row + .r-row { border-top: 1px solid var(--line); }
.r-row h3 { font-weight: 400; font-size: 1rem; }
.r-row p { color: var(--muted); font-size: .88rem; margin-top: 2px; line-height: 1.5; }
.r-row .r-chev { margin-left: auto; color: var(--cyan); opacity: .8; }
.r-group-title { margin: 0 4px 12px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.r-stack { display: grid; gap: 28px; }
.r-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-strong); vertical-align: middle; }

/* steps */
.r-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.r-step { padding: 28px; }
.r-step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; margin-bottom: 18px;
  font-size: 2rem; font-weight: 200; color: var(--cyan);
}
.r-step h3 { margin-bottom: 8px; }
.r-step p { color: var(--muted); font-size: .92rem; }

/* section nav chips */
.r-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.r-chips a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: .84rem; background: rgba(255,255,255,.025); transition: .2s; }
.r-chips a:hover { color: #fff; border-color: var(--line-strong); }

/* ---------- Phone mock ---------- */
.r-phone {
  width: min(310px, 82%); margin-inline: auto;
  padding: 12px; border-radius: 44px;
  background: linear-gradient(160deg, #14243a, #0a1423);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0,0,0,.4) inset;
}
.r-screen { border-radius: 34px; padding: 22px 16px 18px; background: linear-gradient(180deg, #08131f, #050d18); min-height: 560px; }
.r-notch { width: 84px; height: 22px; border-radius: 99px; background: #02060c; margin: -8px auto 14px; }
.r-screen h4 { text-align: center; font-weight: 300; font-size: 1.08rem; letter-spacing: -.01em; }
.r-screen small.sub { display: block; text-align: center; color: var(--muted); font-size: .66rem; margin: 2px 0 14px; }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.m-tile { border-radius: 16px; padding: 14px 10px 10px; text-align: center; background: linear-gradient(150deg, rgba(17,38,60,.95), rgba(8,21,36,.95)); border: 1px solid var(--line); }
.m-tile .r-tile { margin: 0 auto 8px; width: 40px; height: 40px; border-radius: 11px; }
.m-tile b { display: block; font-weight: 400; font-size: .72rem; }
.m-tile span { color: var(--muted); font-size: .6rem; }
.m-label { margin: 16px 2px 8px; font-size: .66rem; letter-spacing: .06em; font-weight: 500; }
.m-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tools .m-tile { padding: 10px 4px 8px; }
.m-tools .r-tile { width: 32px; height: 32px; margin-bottom: 5px; }
.m-tools .r-tile svg { width: 16px; height: 16px; }
.m-plan { margin-top: 10px; border-radius: 16px; padding: 10px; background: linear-gradient(150deg, rgba(17,38,60,.95), rgba(8,21,36,.95)); border: 1px solid var(--line); }
.m-plan svg { width: 100%; height: auto; }

/* ---------- Guides (accordion) ---------- */
.r-guides { display: grid; gap: 10px; }
.r-guide { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, var(--card-a), var(--card-b)); overflow: hidden; }
.r-guide summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.r-guide summary::-webkit-details-marker { display: none; }
.r-guide summary h3 { font-weight: 400; font-size: 1rem; }
.r-guide summary p { color: var(--muted); font-size: .85rem; margin-top: 1px; }
.r-guide summary::after { content: "›"; margin-left: auto; color: var(--cyan); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.r-guide[open] summary::after { transform: rotate(90deg); }
.r-guide ol { margin: 0; padding: 4px 24px 22px 62px; color: var(--soft); font-size: .93rem; line-height: 1.7; }
.r-guide ol li { margin-top: 8px; padding-left: 4px; }
.r-guide ol li::marker { color: var(--cyan); }
.r-note { margin-top: 28px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(34, 211, 238, .05); color: var(--soft); font-size: .92rem; }

/* ---------- Pricing ---------- */
.r-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.r-price { display: flex; flex-direction: column; padding: 30px; }
.r-price.featured { border-color: var(--line-strong); background: linear-gradient(150deg, rgba(20,52,80,.95), rgba(8,24,40,.95)); }
.r-price .tag { font-size: .7rem; letter-spacing: .16em; font-weight: 500; color: var(--cyan); }
.r-price h2 { font-size: 1.5rem; margin: 10px 0 14px; font-weight: 300; }
.r-price .amt { font-size: 2.8rem; font-weight: 200; letter-spacing: -.03em; }
.r-price .amt span { font-size: .95rem; color: var(--muted); margin-left: 6px; font-weight: 300; letter-spacing: 0; }
.r-price .desc { color: var(--muted); font-size: .92rem; margin: 10px 0 18px; }
.r-price ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--soft); font-size: .92rem; }
.r-price li::before { content: "✓"; color: var(--cyan); margin-right: 10px; }
.r-price .button { margin-top: auto; }

/* ---------- CTA band ---------- */
.r-cta { text-align: center; padding: 46px 28px; }
.r-cta h2 { margin-bottom: 12px; }
.r-cta p { color: var(--soft); max-width: 520px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(3, 8, 14, .6); margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 38px 0 22px; }
.footer-top p { color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-links a { color: var(--soft); font-size: .86rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .r-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .r-grid.g3, .r-steps, .r-price-grid { grid-template-columns: 1fr; }
  .r-grid.g2 { grid-template-columns: 1fr; }
  .desktop-nav, .desktop-cta { display: none; }
  .menu-button { display: block; }
  .mobile-menu { display: none; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: rgba(5, 13, 24, .96); }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--soft); }
  .r-section { padding: 60px 0; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 520px) {
  .r-row { padding: 16px; }
  .r-guide ol { padding-left: 40px; padding-right: 18px; }
  .footer-bottom { flex-direction: column; }
}

/* =====================================================================
   Compatibility layer: gives the existing working pages (account,
   checkout, support, admin-linked pages, legal) the same look without
   touching their scripts.
   ===================================================================== */
.page-hero { padding: 76px 0 28px; background: none; min-height: 0; }
.page-hero h1, .billing-hero h1, .account-heading h1, .help-hero h1 { font-weight: 200; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.06; margin: 12px 0 14px; }
.page-hero p, .billing-hero p, .account-heading p { color: var(--soft); max-width: 640px; font-size: 1.05rem; }
.legal-wrap { max-width: 780px; padding: 16px 0 80px; }
.legal-wrap h2 { font-weight: 300; font-size: 1.35rem; margin: 38px 0 10px; letter-spacing: -.01em; }
.legal-wrap p, .legal-wrap li { color: var(--soft); font-size: .98rem; line-height: 1.75; }
.legal-wrap p + p { margin-top: 12px; }
.legal-wrap a { color: var(--cyan); }
.legal-date { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.notice { padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(34, 211, 238, .05); }
.section { padding: 64px 0; }
.section-heading h2 { font-weight: 250; }
.support-card, .price-card, .account-card, .account-auth-card, .team-card, .billing-note,
.help-card, .support-updated .support-card, .account-panel, .team-panel {
  background: linear-gradient(150deg, var(--card-a), var(--card-b)) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}
.support-card h2, .account-card h2, .account-auth-card h2 { font-weight: 300; }
input, textarea, select {
  background: rgba(3, 9, 16, .7); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 300;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
details > summary { cursor: pointer; }
.billing-hero { padding: 76px 0 28px; }
.account-shell { padding-top: 76px; padding-bottom: 80px; }

/* ---------- Store badges ---------- */
.r-actions-center { justify-content: center; margin-top: 4px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px;
  color: var(--soft); background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(34, 211, 238, .38); cursor: default; user-select: none;
}
.store-soon svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linejoin: round; }
.store-soon span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-soon small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 500; }
.store-soon b { font-size: .95rem; font-weight: 500; color: var(--ink); letter-spacing: .005em; }
.footer-soon { color: var(--muted); font-size: .86rem; }
.footer-soon::after { content: "In development"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--cyan); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; vertical-align: 1px; }
@media (max-width: 560px) { .r-actions .store-soon { width: 100%; justify-content: center; } }
