@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17313b;
  --muted: #496472;
  --teal: #0f8583;
  --teal-dark: #076967;
  --line: #cbdedc;
  --paper: #ffffff;
  --background: #edf5f2;
  --soft: #f5f9f8;
  --warning: #fff7e6;
  --warning-line: #e8c77b;
  --error: #9b2929;
  --shadow: 0 18px 44px rgba(23, 49, 59, 0.09);
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbfa 0%, var(--background) 70%);
  line-height: 1.55;
}

a { color: var(--teal-dark); }

.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; }
.brand-wordmark { display: block; width: 126px; height: auto; }
.back { font-weight: 700; text-decoration: none; }

main { padding: 56px 0 72px; }
.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 270px);
  gap: 34px;
  align-items: center;
}
.page-heading-copy { min-width: 0; }
.page-devices {
  display: block;
  width: 100%;
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 18px 18px rgba(23, 49, 59, .14));
}
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { font-family: Roboto, "Segoe UI", system-ui, sans-serif; color: #102f3b; letter-spacing: -.025em; }
h1, h2 { line-height: 1.08; font-weight: 780; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); }
.decision-title { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { margin: 0 0 7px; font-size: 1.12rem; font-weight: 760; }
.lead { max-width: 820px; margin: 24px 0 0; color: var(--muted); font-size: 1.2rem; }

.intro-note, .notice {
  margin-top: 26px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .7);
}
.notice-warning { background: var(--warning); border-color: var(--warning-line); }
.notice-error { color: var(--error); border-color: #dfb5b5; background: #fff5f5; }

.use-cases { display: grid; gap: 18px; margin-top: 34px; }
.use-case, .panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.use-case { display: grid; grid-template-columns: 104px 1fr auto; gap: 20px; align-items: center; }
.case-number { min-height: 42px; display: inline-grid; place-items: center; padding: 8px 13px; border-radius: 999px; color: #fff; background: var(--teal); font-size: .9rem; font-weight: 800; white-space: nowrap; }
.use-case p { margin: 6px 0 0; color: var(--muted); }
.use-case .fit { margin-top: 12px; color: var(--ink); font-weight: 700; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--teal);
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: #fff; border-color: var(--line); }
.button-secondary:hover { background: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.choice-hint { margin: 30px 0 0; padding: 20px; border-left: 5px solid var(--teal); background: #fff; border-radius: 0 14px 14px 0; }
.choice-hint p { margin: 0; }

.steps { margin: 34px 0; padding: 0; list-style: none; counter-reset: steps; display: grid; gap: 16px; }
.steps li { counter-increment: steps; padding: 20px 22px 20px 68px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(steps); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 800; }
.steps strong { display: block; margin-bottom: 4px; }

.tool { margin-top: 32px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-card { padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.field-card label { display: block; margin-bottom: 9px; font-weight: 800; }
.field-card p { margin: 0 0 14px; color: var(--muted); }
textarea { width: 100%; min-height: 112px; resize: vertical; padding: 14px; border: 1px solid #b8d5d2; border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
textarea:focus { outline: 3px solid rgba(15, 133, 131, .18); border-color: var(--teal); }
.storage-choice {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.storage-choice input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  flex: 0 0 auto;
}
.feedback { min-height: 24px; margin-top: 14px; color: var(--error); font-weight: 700; }
.qr-output { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-output[hidden] { display: none; }
.qr { width: 212px; min-height: 212px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr img, .qr canvas { display: block; max-width: 100%; }
.qr-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.qr-layout ol { margin-top: 8px; padding-left: 22px; }
.share-url { overflow-wrap: anywhere; padding: 12px; background: var(--soft); border-radius: 10px; font-size: .88rem; }
.security-hint { color: var(--muted); font-size: .92rem; }
.foot-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; }

.site-footer { padding: 0 0 38px; }
.footergrid { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-product-logo { display: block; width: 168px; height: auto; }
.footer-company-line { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.footer-company-line a { display: inline-flex; }
.footer-company-logo { display: block; width: 190px; height: auto; }
.tiny { font-size: 13px; }
.muted { color: var(--muted); line-height: 1.6; }
.right { text-align: right; }

@media (max-width: 860px) {
  .container { width: min(100% - 24px, 1100px); }
  main { padding-top: 36px; }
  .page-heading { display: block; }
  .page-devices { display: none; }
  .use-case { grid-template-columns: 96px 1fr; padding: 22px; }
  .case-number { min-height: 38px; padding: 7px 11px; }
  .use-case .button { grid-column: 1 / -1; }
  .tool-grid, .qr-layout { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .footergrid { grid-template-columns: 1fr; }
  .right { text-align: left; }
  .footer-company-line { justify-content: flex-start; }
}
