:root {
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #141612;
  --muted: #686d64;
  --line: #dfe3db;
  --acid: #dfff45;
  --acid-dark: #b4d61f;
  --shadow: 0 28px 80px rgba(30, 36, 24, 0.09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(223, 255, 69, 0.14), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 760; letter-spacing: -0.03em; }
.brand i { color: var(--muted); font-style: normal; font-weight: 500; }
.brand-mark { position: relative; width: 30px; height: 30px; flex: 0 0 auto; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--acid); }
.brand-mark::before { content: ""; position: absolute; left: 13px; top: 5px; width: 2px; height: 18px; border-radius: 2px; background: var(--ink); transform: rotate(35deg); }
.brand-mark::after { content: ""; position: absolute; left: 7px; bottom: 4px; width: 11px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; transform: rotate(35deg); }
.quiet-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; border-bottom: 1px solid var(--line); padding: 8px 0; }

.hero { min-height: calc(100vh - 176px); display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 10vw; align-items: center; padding: 60px 0 90px; }
.hero > * { min-width: 0; }
.mobile-only { display: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow span { width: 23px; height: 2px; background: var(--acid-dark); }
.hero h1 { max-width: 660px; margin: 0; font-size: clamp(56px, 7.1vw, 105px); line-height: 0.91; letter-spacing: -0.075em; font-weight: 760; }
.lead { max-width: 520px; margin: 35px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; letter-spacing: -0.025em; }
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 36px 0 21px; }
.price-line strong { font-size: 17px; letter-spacing: -0.02em; }
.price-line span { color: var(--muted); font-size: 14px; }
.google-button { width: fit-content; min-width: 260px; min-height: 56px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 16px; text-decoration: none; font-size: 15px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.google-button:hover { transform: translateY(-2px); background: #242720; box-shadow: 0 12px 30px rgba(20, 22, 18, .17); }
.google-button svg { width: 20px; height: 20px; padding: 2px; background: #fff; border-radius: 50%; }
.microcopy { max-width: 460px; margin: 14px 0 0; color: #8a8f86; font-size: 11px; line-height: 1.55; }

.device-card { min-height: 560px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid rgba(20, 22, 18, .08); border-radius: 34px; box-shadow: var(--shadow); }
.device-card-head { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #7bc71f; box-shadow: 0 0 0 5px rgba(123, 199, 31, .11); }
.status-label { margin-left: auto; padding: 7px 11px; border-radius: 999px; color: #54750c; background: #effbd9; font-size: 11px; font-weight: 700; }
.device-orbit { position: relative; flex: 1; min-height: 340px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 315px; height: 315px; }
.orbit-two { width: 215px; height: 215px; border-style: dashed; animation: spin 26s linear infinite; }
.core-mark { position: relative; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 34px; background: var(--acid); box-shadow: 0 22px 50px rgba(180, 214, 31, .25); transform: rotate(-8deg); }
.core-mark::before { content: ""; width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 50%; }
.core-mark::after { content: ""; position: absolute; width: 4px; height: 55px; border-radius: 5px; background: var(--ink); transform: rotate(39deg); }
.core-mark span { position: absolute; width: 28px; height: 15px; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 20px 20px; transform: translate(-17px, 25px) rotate(39deg); }
.device-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.device-stats div { padding: 24px 16px 3px; border-right: 1px solid var(--line); }
.device-stats div:last-child { border-right: 0; }
.device-stats strong, .device-stats span { display: block; }
.device-stats strong { font-size: 25px; letter-spacing: -0.05em; }
.device-stats span { margin-top: 6px; color: var(--muted); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-note { color: var(--ink); }

.setup-dialog { width: min(440px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(20, 22, 18, .25); }
.setup-dialog::backdrop { background: rgba(20, 22, 18, .38); backdrop-filter: blur(5px); }
.setup-dialog h2 { margin: 22px 0 10px; font-size: 28px; letter-spacing: -0.04em; }
.setup-dialog p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.dialog-close { position: absolute; right: 20px; top: 17px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.primary-small { min-height: 44px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }

.dashboard-topbar { border-bottom: 1px solid var(--line); }
.avatar-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 750; cursor: pointer; }
.dashboard { padding: 70px 0 100px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 52px; }
.welcome-row h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); letter-spacing: -0.06em; }
.plan-pill { padding: 11px 15px; border-radius: 999px; background: var(--acid); font-size: 12px; font-weight: 750; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.connection-panel, .subscription-panel, .devices-section { padding: 30px; border: 1px solid var(--line); border-radius: 27px; background: var(--surface); }
.connection-panel { min-height: 300px; display: flex; flex-direction: column; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-kicker { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.connection-panel h2, .section-title h2 { margin: 0; font-size: 25px; letter-spacing: -0.04em; }
.connection-panel > p { max-width: 520px; color: var(--muted); line-height: 1.6; }
.status-dot.muted { background: #c9cec4; box-shadow: none; }
.primary-action { margin-top: auto; min-height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 15px; color: #fff; background: var(--ink); font-weight: 700; cursor: pointer; }
.primary-action span { font-size: 22px; }
.days { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.days strong { font-size: 70px; line-height: .8; letter-spacing: -0.08em; }
.days span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.progress { height: 6px; overflow: hidden; border-radius: 20px; background: #edf0e9; }
.progress span { display: block; width: 100%; height: 100%; background: var(--acid-dark); }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.55; }
.devices-section { margin-top: 20px; }
.section-title { display: flex; align-items: end; justify-content: space-between; }
.section-title > span { color: var(--muted); font-size: 12px; }
.empty-device { min-height: 150px; margin-top: 24px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed #ccd1c7; border-radius: 20px; color: var(--muted); text-align: center; }
.empty-device p { margin: 0; font-size: 13px; }
.empty-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 23px; }

.document { max-width: 760px; padding: 80px 0 120px; }
.document h1 { margin: 0 0 30px; font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: -0.06em; }
.document p { color: #4f544c; font-size: 17px; line-height: 1.75; }
.draft-note { margin: 0 0 30px; padding: 16px 18px; border-left: 3px solid var(--acid-dark); background: #f0f4e8; color: #596052; font-size: 13px; line-height: 1.5; }
.back-link { display: inline-block; margin-top: 30px; font-weight: 700; text-decoration: none; }

@media (max-width: 850px) {
  .shell { width: min(100% - 32px, 680px); }
  .topbar { height: 76px; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding: 55px 0 72px; }
  .hero h1 { font-size: clamp(51px, 14vw, 82px); }
  .device-card { min-height: 490px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(44px, 12.3vw, 49px); letter-spacing: -0.07em; }
  .mobile-only { display: initial; }
  .lead { margin-top: 27px; font-size: 17px; }
  .google-button { width: 100%; }
  .device-card { min-height: 440px; padding: 22px; border-radius: 26px; }
  .device-orbit { min-height: 290px; }
  .orbit-one { width: 250px; height: 250px; }
  .orbit-two { width: 170px; height: 170px; }
  .core-mark { width: 96px; height: 96px; }
  .device-stats div { padding-inline: 8px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .dashboard { padding-top: 48px; }
  .connection-panel, .subscription-panel, .devices-section { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
