/* getgrok.org – style.css. Design tokens measured from the source site (design-source/pages/home.md):
   warm off-white #f9f8f7, ink #050505, hairline #e6e5e3, black pill buttons, 24px composer-style cards, flat surfaces. */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #050505;          /* filled button / ink */
  --primary-dark: #333333;     /* measured hover = neutral-800 */
  --accent: #299fff;           /* measured accent-blue (send button tint) */
  --gold: #299fff;
  --dark: #050505;
  --header-bg: #f9f8f7;
  --bg: #f9f8f7;
  --surface: #ffffff;
  --surface-2: #eae8e6;        /* measured surface-l2 */
  --text: #050505;
  --text-muted: #636363;       /* fg-secondary */
  --text-faint: #858585;       /* fg-tertiary */
  --green: #1aae5b;
  --red: #e03c31;
  --border: #e6e5e3;           /* border-composer */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;           /* composer radius */
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(15,13,10,.04), 0 8px 24px rgba(15,13,10,.06);
  --shadow-lg: 0 12px 32px rgba(15,13,10,.10);
  --ease: cubic-bezier(.4, 0, .2, 1);          /* measured button easing */
  --ease-out: cubic-bezier(.22, 1, .36, 1);    /* measured entrance easing */
  --dur-fast: .1s;                              /* measured button transition */
  --dur-md: .18s;
  --transition: var(--dur-md) var(--ease);
  --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 48px; --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; } /* clip, never hidden (M9) */
body {
  font-family: "universalSans", Inter, Roboto, "Open Sans", Arial, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(5,5,5,.3); transition: text-decoration-color var(--dur-fast) var(--ease); }
a:hover { text-decoration-color: var(--text); }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.3; font-weight: 600; text-wrap: balance; letter-spacing: -.02em; }

/* ─── HEADER (flat, same warm surface as the page, logo left / actions right) ─── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); border-bottom: 1px solid rgba(15,13,10,.04); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 20px; height: 62px; gap: var(--space-sm); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand, .nav-links a, .btn-cta, .dropdown-panel a, .footer-col a { text-decoration: none; }
.logo { height: 33px; width: auto; max-width: 160px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links > li > a, .dropdown-toggle {
  color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); white-space: nowrap;
}
.nav-links > li > a:hover, .dropdown-toggle:hover { color: var(--text); background: rgba(5,5,5,.04); }
.nav-right { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; margin-left: auto; }
.mobile-lang { display: none; }

/* ─── DROPDOWN (bridge-correct, M26) ─── */
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: 100%; right: 0; margin-top: 0; padding-top: 8px; display: none; min-width: 160px; z-index: 1000; }
.dropdown-panel-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 10px 14px; color: var(--text); font-size: 14px; border-radius: 10px; transition: background-color var(--dur-fast) var(--ease); white-space: nowrap; }
.dropdown-panel a:hover { background: rgba(5,5,5,.04); }
.dropdown-toggle { background: none; border: 0; cursor: pointer; font-family: inherit; }
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }

/* ─── BUTTONS: black pill (measured: 40px, 8px 16px, 14px/500, radius 9999) ─── */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--primary); color: #fcfcfc; border: 1px solid var(--primary);
  height: 40px; padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-md) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn-cta:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; } }
.btn-cta:active { transform: scale(.97); }
.btn-lg { height: 48px; padding: 10px 28px; font-size: 15px; }
.btn-cta:focus-visible, .nav-toggle:focus-visible, .faq-q:focus-visible, .dropdown-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); font-size: 22px; padding: 6px 10px; border-radius: var(--radius-pill); order: 99; }

/* ─── HERO: centred heading + composer-proportioned card (750px, 24px radius, 1px #e6e5e3, white) ─── */
.hero { padding: 96px 20px 72px; text-align: center; position: relative; }
.hero-inner { position: relative; max-width: 750px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); padding: 5px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; margin-bottom: var(--space-md); }
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 600; text-wrap: balance; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 var(--space-sm); }
.hero p, .page-hero p { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 640px; margin: 0 auto var(--space-md); }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin: var(--space-md) auto 0; text-align: left; }
.hero-card ol { padding: 0; margin: 0 0 var(--space-sm); counter-reset: s; display: grid; gap: 10px; }
.hero-card li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--text-muted); font-size: 15px; }
.hero-card li::before { content: counter(s); flex: 0 0 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 550; transform: translateY(2px); }
.hero-card .hero-cta-group { justify-content: flex-end; }
.hero-cta-group { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.page-hero { padding: 80px 20px 48px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; margin-bottom: var(--space-sm); }
.container { max-width: 1100px; margin: 0 auto; }
time.updated { display: block; margin: 0 0 var(--space-sm); font-size: 13px; color: var(--text-faint); }

/* ─── SECTIONS ─── */
.section { padding: 72px 20px; }
.section-alt { background: #f3f1ef; }
.section-title { font-size: clamp(22px, 3.4vw, 30px); text-align: center; margin-bottom: 10px; }
.section-sub { max-width: 720px; margin: 0 auto var(--space-lg); text-align: center; color: var(--text-muted); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-sm); }
.feature-card, .device-card, .pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-md); transition: box-shadow var(--dur-md) var(--ease), transform var(--dur-md) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .feature-card:hover, .device-card:hover, .pricing-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); } }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--surface-2); display: grid; place-items: center; font-size: 18px; margin-bottom: var(--space-sm); color: var(--text); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
.bullets { padding-left: 20px; list-style: disc; max-width: 720px; margin: var(--space-sm) auto; color: var(--text-muted); }
.bullets li { margin: 6px 0; }
.section .container > p { max-width: 720px; margin-left: auto; margin-right: auto; color: var(--text-muted); }

/* ─── DEVICE / PRICING ─── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-sm); }
.device-card { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.device-card .device-icon { font-size: 30px; width: 40px; height: 40px; line-height: 40px; color: var(--text); }
.device-card h3 { margin: 0; font-size: 19px; }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-sm); max-width: 820px; margin: 0 auto; }
.pricing-name { font-size: 13px; font-weight: 550; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 30px; font-weight: 550; letter-spacing: -.03em; line-height: 1.2; }
.pricing-period { font-size: 14px; color: var(--text-faint); margin: 6px 0 var(--space-sm); }
.pricing-cta { margin-top: var(--space-sm); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 500; font-size: 14px; background: var(--surface); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 12px 16px; text-align: left; font-size: 14px; }
.compare-table th { color: var(--text-muted); font-weight: 550; background: #f3f1ef; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .highlight { background: rgba(41,159,255,.07); font-weight: 550; }

/* ─── FAQ (animated: grid-rows + opacity) ─── */
.faq-list { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 0; font: inherit; font-size: 16px; font-weight: 550; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq-q::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text-faint); flex-shrink: 0; transition: transform var(--dur-md) var(--ease-out); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .23s var(--ease-out), opacity .18s var(--ease), visibility 0s linear .23s; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.faq-a > p { overflow: hidden; min-height: 0; margin: 0; }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.faq-item.open .faq-a > p { padding-bottom: 18px; }

/* ─── FOOTER (light, like the source's bare footer) ─── */
.site-footer { background: var(--bg); color: var(--text-muted); border-top: 1px solid var(--border); padding: var(--space-lg) 20px var(--space-md); }
.footer-grid { max-width: 1100px; margin: 0 auto var(--space-lg); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); }
.footer-brand .logo-footer { height: 33px; width: auto; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-heading { color: var(--text); font-size: 13px; font-weight: 550; margin: 0 0 var(--space-sm); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 13px; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: var(--space-sm); }
.footer-bottom p { font-size: 13px; margin: 0; color: var(--text-faint); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }                                      /* M7 */
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(15,13,10,.08); padding: 8px 12px 12px; z-index: 999; }
  .nav-links.open { display: flex; animation: menu-in .2s var(--ease-out); }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a, .nav-links .dropdown-toggle { display: block; width: 100%; padding: 14px 0; font-size: 17px; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links .dropdown { width: 100%; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel, .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }
  .nav-links .dropdown-panel-inner { background: var(--surface-2); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { text-align: center; }
  .hero { padding: 56px 16px 48px; }
  .page-hero { padding: 48px 16px 32px; }
  .section { padding: 48px 16px; }
  .hero-card { padding: 18px; }
  .hero-card .hero-cta-group { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .btn-cta, .hero-cta-group a { display: flex; margin-left: auto; margin-right: auto; width: max-content; max-width: 90%; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }               /* M21 */
  .footer-brand { grid-column: 1 / -1; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ─── MOTION: measured 0.1s button / 0.18-0.23s UI easing; scroll reveals only where the source has none → none ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .feature-card:hover, .device-card:hover, .pricing-card:hover, .btn-cta:active { transform: none; }
}
