/* DeskSail website. No framework; light and dark via CSS variables. */

:root {
  --bg: #f4f3ef;
  --bg-glow: #dde9ff;
  --surface: #ffffff;
  --surface-2: #f8f8f5;
  --border: #e2e1da;
  --text: #17181c;
  --muted: #62646d;
  --accent: #0b57f0;
  --accent-hover: #0044d1;
  --accent-soft: #e5eeff;
  --brand-deep: #0021b8;
  --brand-mid: #0159f4;
  --brand-sky: #00bbfd;
  --on-accent: #ffffff;
  --danger: #c4322b;
  --danger-soft: #fdecea;
  --on-danger: #ffffff;
  --ok: #17845a;
  --ok-soft: #e3f5ec;
  --warn-soft: #fff4dc;
  --warn-text: #7a5300;
  --shadow: 0 1px 2px rgb(20 22 30 / 6%), 0 8px 28px rgb(20 22 30 / 7%);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-glow: #17203d;
    --surface: #16181e;
    --surface-2: #1c1f26;
    --border: #2a2d36;
    --text: #ebecf0;
    --muted: #9a9daa;
    --accent: #6ea2ff;
    --accent-hover: #8db6ff;
    --accent-soft: #15254a;
    --on-accent: #0b1023;
    --danger: #ff7b72;
    --danger-soft: #3a1714;
    --on-danger: #2b0906;
    --ok: #4cd497;
    --ok-soft: #10301f;
    --warn-soft: #34290f;
    --warn-text: #f2cf7c;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2rem); }
h2 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
strong { font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.08rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.button):hover { color: var(--text); }

.main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.main-wide { max-width: 1160px; }
.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; padding: 1.6rem 1.25rem 2rem; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.5rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text); }
.footer-brand img { border-radius: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.15rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .6; cursor: progress; }
.button-small { min-height: 36px; padding: .35rem .9rem; font-size: .92rem; }
.button-block { width: 100%; }
.button-large { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.03rem; }
.button-light { background: #fff; color: var(--brand-deep); }
.button-light:hover { background: #eaf2ff; color: var(--brand-deep); }
.button-danger-solid { background: var(--danger); color: var(--on-danger); }
.button-danger-solid:hover { background: color-mix(in srgb, var(--danger) 88%, var(--text)); color: var(--on-danger); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button-ghost:hover { background: var(--surface-2); color: var(--text); }
.button-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.button-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.dialog .button-danger[value="remove"] { background: var(--danger); color: #fff; border-color: var(--danger); }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.nav .link-button { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav .link-button:hover { color: var(--text); }

/* Landing */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%2317845a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.hero-art { position: relative; height: clamp(420px, 48vw, 560px); }
.hero-glow {
  position: absolute; inset: 8% 4% 4% 4%; border-radius: 40px;
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-mid) 45%, var(--brand-deep));
  transform: rotate(-4deg); opacity: .95;
}
.phone {
  margin: 0; border-radius: 30px; padding: 7px; background: #0d1220;
  box-shadow: 0 24px 60px rgb(0 20 80 / 28%), 0 4px 14px rgb(0 0 0 / 18%);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.hero-art .phone { position: absolute; width: clamp(170px, 19vw, 235px); }
.phone-back { left: 10%; top: 0; transform: rotate(-6deg); }
.phone-front { right: 8%; bottom: 0; transform: rotate(4deg); }

.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.strip > div { background: var(--surface); padding: 1.15rem 1.3rem; display: grid; gap: .15rem; }
.strip strong { font-size: 1.25rem; letter-spacing: -0.01em; }
.strip span { color: var(--muted); font-size: .9rem; }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.section-tint {
  margin-top: clamp(3rem, 8vw, 5.5rem); padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  border-radius: 28px; background: linear-gradient(160deg, var(--accent-soft), transparent 75%);
}
.section-head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.025em; margin-bottom: .75rem; text-wrap: balance; }
.section-head .lede { margin: 0 auto; }

.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.45rem; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature h3 { font-size: 1.07rem; margin: .9rem 0 .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--brand-sky), var(--brand-mid) 55%, var(--brand-deep));
}
.feature-icon svg { width: 24px; height: 24px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); max-width: 940px; margin: 0 auto; }
.shot { margin: 0; display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.shot .phone { width: min(100%, 250px); }
.shot figcaption { color: var(--muted); font-size: .95rem; max-width: 18em; }
.shot figcaption strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: .2rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.steps h3 { font-size: 1.07rem; margin: .9rem 0 .4rem; }
.steps p { color: var(--muted); margin: 0; }
.step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; }

.cta {
  margin-top: clamp(3rem, 8vw, 5.5rem); text-align: center; color: #fff;
  border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: radial-gradient(600px 300px at 85% 0%, rgb(0 187 253 / 55%), transparent 70%),
    linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
}
.cta img { border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); margin-bottom: 1.2rem; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.025em; }
.cta p { color: rgb(255 255 255 / 85%); font-size: 1.1rem; margin-bottom: 1.6rem; }

.hero-chip {
  position: absolute; left: 4%; bottom: 9%; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem;
  border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 4px rgb(34 168 97 / 18%); }

.showcase .phone-landscape {
  max-width: 980px; margin: 0 auto; padding: 9px; border-radius: 34px;
  box-shadow: 0 40px 90px rgb(0 30 120 / 30%), 0 6px 18px rgb(0 0 0 / 18%);
}
.showcase .phone-landscape img { border-radius: 26px; }
@media (max-width: 620px) {
  .showcase .phone-landscape { padding: 5px; border-radius: 18px; }
  .showcase .phone-landscape img { border-radius: 14px; }
}

.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.spotlight-flip .spot-copy { order: 2; }
.spot-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: .8rem; text-wrap: balance; }
.spot-art {
  position: relative; display: grid; place-items: center; min-height: 340px;
  padding: clamp(1.5rem, 5vw, 3rem); border-radius: 28px; overflow: hidden;
  background: radial-gradient(420px 260px at 85% 0%, rgb(0 187 253 / 55%), transparent 70%),
    linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
}
.spot-art img {
  display: block; width: 100%; height: auto; max-width: 460px;
  filter: drop-shadow(0 18px 40px rgb(0 10 60 / 40%));
}
#quality .spot-art img { max-width: 330px; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .95rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--muted); }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.6L14.2 7.4' fill='none' stroke='%230b57f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.6L14.2 7.4' fill='none' stroke='%236ea2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-flip .spot-copy { order: 0; }
  .spot-art { min-height: 0; }
}
@media (max-width: 620px) {
  .hero-chip { left: 50%; transform: translateX(-50%); bottom: 2%; white-space: nowrap; }
}

/* Legal and account pages */
.prose { max-width: 720px; margin: clamp(.5rem, 3vw, 2rem) auto 0; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.025em; }
.prose h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.02rem; margin: 1.4rem 0 .4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose .button { margin-top: .5rem; }
.danger-zone { max-width: 640px; border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.danger-zone h2 { color: var(--danger); font-size: 1.25rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.hint.center { display: block; text-align: center; margin: .9rem 0 0; }

/* Cards and forms */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem);
}
.auth { max-width: 430px; margin: clamp(.5rem, 4vw, 2.5rem) auto 0; }
.form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .35rem; font-weight: 550; font-size: .95rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.small-link { font-weight: 500; font-size: .88rem; }
.field input {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { color: var(--muted); font-weight: 400; font-size: .84rem; }
.switch { margin: 1.25rem 0 0; text-align: center; color: var(--muted); font-size: .95rem; }

.alert, .notice { border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .93rem; margin: 0; }
.alert { background: var(--danger-soft); color: var(--danger); }
.alert.alert-ok { background: var(--ok-soft); color: var(--ok); }
.notice { background: var(--warn-soft); color: var(--warn-text); }
.notice .link-button { color: inherit; font-weight: 600; }
.google-alert { margin-top: .75rem; }

.divider { display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 1.1rem; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-button { display: flex; justify-content: center; min-height: 44px; }

.badge-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 1rem;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Devices */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .5rem 0 1.5rem; }
.page-head p { margin: 0; }
#devices-alert { margin-bottom: 1rem; }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.device {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.15rem; transition: opacity .2s;
}
.device.removing { opacity: .45; }
.device-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.device-icon svg { width: 24px; height: 24px; }
.device-main { display: grid; min-width: 0; }
.device-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-meta { color: var(--muted); font-size: .9rem; }
.device-state { display: grid; justify-items: end; gap: .15rem; text-align: right; }
.status {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.status-on { color: var(--ok); }
.status-on::before { opacity: 1; box-shadow: 0 0 0 3px var(--ok-soft); }
.seen { color: var(--muted); font-size: .8rem; }
.empty {
  text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.empty .device-icon { margin: 0 auto 1rem; }
.empty p { max-width: 30em; margin: 0 auto; }

.dialog {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
  width: min(440px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(8 10 16 / 45%); backdrop-filter: blur(2px); }
.dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 190px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { padding: .9rem 1rem; }
  .nav-extra { display: none; }
  .hero-art { height: 380px; }
  .hero-art .phone { width: 160px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav { gap: .8rem; }
  .main { padding: 1rem 1rem 2.5rem; }
  .device { grid-template-columns: auto 1fr; row-gap: .75rem; }
  .device-state { grid-column: 2; justify-items: start; text-align: left; }
  .device .button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Accessibility: skip link, current page in the nav */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }
.main:focus { outline: none; }
.nav a[aria-current="page"] { color: var(--text); position: relative; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent);
}

/* Auth cards */
.auth-logo { display: block; width: 44px; height: 44px; border-radius: 11px; margin-bottom: 1.1rem; }
.badge-icon svg { width: 26px; height: 26px; }
.check input { cursor: pointer; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle svg { width: 20px; height: 20px; }

/* Buttons: a quiet destructive action for lists (red only on hover/focus) */
.button-quiet { background: transparent; color: var(--muted); border-color: var(--border); }
.button-quiet:hover, .button-quiet:focus-visible { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

/* Account page */
.account { max-width: 720px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 1rem;
}
.panel h2 { font-size: 1.05rem; margin-bottom: .9rem; }
.panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: .15rem 0 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 650; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-mid) 55%, var(--brand-deep));
}
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: .93rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.row-actions:first-of-type { border-top: 0; padding-top: 0; }
.row-actions p { margin: 0; }
.row-title { font-weight: 600; }
.row-actions .muted { font-size: .92rem; }
.row-actions .button { white-space: nowrap; flex: none; }
.panel.danger-zone { max-width: none; border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.panel.danger-zone h2 { color: var(--danger); }
.panel.danger-zone .form { max-width: 420px; }

/* Devices page tip */
.tip {
  display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem;
  padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--text);
}
.tip svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .1rem; }
.tip p { margin: 0; font-size: .95rem; }

@media (max-width: 620px) {
  .facts > div { grid-template-columns: 1fr; gap: .15rem; }
  .row-actions { flex-direction: column; align-items: stretch; }
  .row-actions .button { width: 100%; }
}

/* Pricing (landing page) and DeskSail Pro panel (Account page) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 760px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: .5rem;
}
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan-price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: .2rem 0 0; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: .6rem 0 1rem; padding-left: 1.1rem; display: grid; gap: .35rem; flex: 1; align-content: start; }
.plan-pro { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .6rem; }
#plan .notice { margin-bottom: 1rem; }
#plan .alert { margin-top: .8rem; }
.small { font-size: .85rem; }
@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
}

/* Sharing (Devices page) */
.sharing { margin-top: 1.5rem; }
.sharing h3 { font-size: .95rem; margin: 1.4rem 0 .5rem; }
.share-form { display: grid; gap: .8rem; margin-top: 1rem; }
.share-form select { width: 100%; }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: .35rem; }
.checks legend { font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }
.checks label { display: flex; gap: .5rem; align-items: center; font-size: .95rem; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.share { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .85rem; }
.share .row-title { margin: 0; }
.share .muted { margin: .1rem 0 0; font-size: .88rem; }
