:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --ink: #132033;
  --muted: #647086;
  --line: #dbe4ee;
  --blue: #1268db;
  --blue-2: #0a4faf;
  --green: #0f8f72;
  --orange: #d66a1f;
  --shadow: 0 22px 60px rgba(19, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.86);
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.header-actions,
.hero-metrics,
.save-row,
.platform-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.top-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 104, 219, 0.28);
  outline-offset: 3px;
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

.ghost-button:hover {
  background: var(--surface-2);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.solid-button,
.save-row button,
.plan-grid button,
.plan-button,
.download-grid button,
.download-grid a,
.auth-card button {
  background: var(--blue);
  color: #fff;
}

.solid-button:hover,
.save-row button:hover,
.plan-grid button:hover,
.plan-button:hover,
.download-grid button:hover,
.download-grid a:hover,
.auth-card button:hover {
  background: var(--blue-2);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.save-box {
  max-width: 650px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(19, 32, 51, 0.08);
}

.save-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.save-row {
  gap: 10px;
}

.save-row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
}

#saveMessage {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-metrics span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--ink);
}

.device-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.device-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d4e6;
}

.device-toolbar p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transfer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #132033;
  color: #fff;
}

.transfer-card p {
  margin-bottom: 6px;
  color: #aab8cc;
}

.transfer-card strong {
  font-size: 30px;
}

.speed-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 72%, rgba(255, 255, 255, 0.16) 0);
  box-shadow: inset 0 0 0 13px #132033;
}

.file-stack {
  padding: 0 20px 20px;
}

.file-stack article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(219, 228, 238, 0.88);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.file-stack strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-stack small {
  color: var(--muted);
}

.file-stack button {
  min-height: 34px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--ink);
}

.file-type {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.video {
  background: var(--blue);
}

.zip {
  background: var(--orange);
}

.doc {
  background: var(--green);
}

.feature-strip,
.workflow,
.platforms,
.plans,
.faq,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 0 68px;
}

.feature-strip article,
.steps article,
.plan-grid article,
.platform-detail,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(19, 32, 51, 0.06);
}

.feature-strip article {
  padding: 20px;
}

.feature-strip span {
  color: var(--blue);
  font-weight: 900;
}

.feature-strip h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.feature-strip p,
.steps p,
.platform-detail p,
.plan-grid p,
.faq-item small,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.workflow,
.platforms,
.plans,
.faq {
  padding: 58px 0;
}

.steps,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps article {
  padding: 24px;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.platform-grid {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.platform {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.platform.active,
.platform:hover {
  border-color: rgba(18, 104, 219, 0.35);
  background: #eaf2ff;
  color: var(--blue);
}

.platform-detail {
  min-height: 134px;
  padding: 26px;
}

.platform-detail h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.plan-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.highlight-plan {
  border-color: rgba(18, 104, 219, 0.45);
  background: linear-gradient(180deg, #ffffff, #edf5ff);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff6ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin-bottom: 10px;
  color: var(--ink) !important;
  font-size: 36px;
  font-weight: 900;
}

.plan-grid button,
.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  display: block;
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 18px 20px;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
}

.faq-item span {
  display: block;
  font-size: 17px;
}

.faq-item small {
  display: none;
  margin-top: 8px;
  font-size: 14px;
}

.faq-item[aria-expanded="true"] small {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.subpage {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.wide-heading {
  max-width: 780px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.auth-card,
.preview-panel,
.help-grid article,
.download-grid article,
.policy-card,
.activity-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(19, 32, 51, 0.06);
}

.auth-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.auth-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.status-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.preview-panel {
  margin-top: 40px;
  padding: 24px;
}

.activity-list,
.help-grid,
.download-grid {
  display: grid;
  gap: 14px;
}

.activity-list {
  grid-template-columns: repeat(3, 1fr);
}

.activity-list article {
  padding: 16px;
}

.activity-list strong,
.activity-list span {
  display: block;
}

.activity-list span {
  margin-top: 6px;
  color: var(--muted);
}

.help-grid,
.download-grid {
  grid-template-columns: repeat(3, 1fr);
}

.help-grid article,
.download-grid article {
  padding: 22px;
}

.help-grid h2,
.download-grid h2,
.policy-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.help-grid p,
.download-grid p,
.policy-card p {
  color: var(--muted);
  line-height: 1.6;
}

.download-grid button,
.download-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.policy-card {
  max-width: 880px;
  padding: 28px;
}

.page-faq {
  width: 100%;
  padding-top: 34px;
}

dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(19, 32, 51, 0.38);
}

dialog form {
  padding: 24px;
}

dialog button {
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  transform: translateY(18px);
  opacity: 0;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 10px;
  background: #132033;
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.utility-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.utility-panel {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.utility-panel h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 8vw, 3rem);
}

.utility-panel p {
  color: var(--muted);
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  background: var(--surface-2);
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .feature-strip,
  .steps,
  .plan-grid,
  .auth-grid,
  .activity-list,
  .help-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions button,
  .header-actions .button-link {
    flex: 1;
  }

  .save-row {
    display: grid;
  }

  .file-stack article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .file-stack article button {
    grid-column: 1 / -1;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 14px;
  }
}
