/* webto.page/setup: words on the left, the Amazon walkthrough on a full-height blue panel on the right.
   Mirrors the Safari app's window (safari/…/Resources/Style.css). */
:root {
  color-scheme: light dark;
  --paper: #f7f5f0;
  --ink: #161615;
  --muted: #605e59;
  --rule: rgb(22 22 21 / 0.13);
  --card: rgb(22 22 21 / 0.04);
  --accent: #3d6e9c;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --ink: #ebe8e1;
    --muted: #a19d95;
    --rule: rgb(235 232 225 / 0.13);
    --card: rgb(235 232 225 / 0.05);
    --accent: #8fb6dc;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  /* The walkthrough on the left, as in the extension's pop-up; its browser overhangs into the words (--overhang). */
  --overhang: 100px;
  /* How far the blue panel runs past its column into the words, under the overhanging browser. */
  --panel-extra: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 560px);
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.side {
  display: flex;
  flex-direction: column;
  padding: 32px 48px 28px calc(var(--overhang) + 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-bottom: 48px;
  color: var(--ink);
  font: 650 18px var(--sans);
  letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; }

h1 {
  margin: 0;
  font: 700 32px/1.1 var(--sans);
  letter-spacing: -0.03em;
}

.lede {
  margin: 12px 0 0;
  color: var(--muted);
}

.label {
  display: block;
  margin: 0 0 6px;
  font: 600 11px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.install {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 18px rgb(0 0 0 / 0.04);
  font-size: 14px;
}
.install p { margin: 0 0 14px; }
.install > p em { color: var(--muted); }

.then { margin-top: 30px; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 26px;
}

/* The extension's call-to-action button: rounded, a soft gradient and shadow. */
.button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(20 40 70 / 0.2), 0 6px 16px -6px rgb(40 80 130 / 0.55);
}
.button:hover { text-decoration: none; filter: brightness(1.06); }
@media (prefers-color-scheme: dark) { .button { color: #121211; } }

select {
  font: 13px var(--sans);
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: var(--card);
  color: var(--muted);
}

/* The two steps as underlined tabs, each with its number, like the extension's pop-up. */
.tabs { display: flex; gap: 24px; margin-top: 8px; border-bottom: 1px solid var(--rule); }
.step-head { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 12px; border: 0; background: none;
  color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.step-head:hover { color: var(--ink); }
.step-head[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.step-head[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--rule); font: 600 11px var(--sans); color: var(--muted); }
.step-head[aria-selected="true"] .num { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Steps: plain numbers on the first line's baseline, the text hanging beside them. */
.steps { counter-reset: step; list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.55; }
.steps[hidden] { display: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.steps li::before { content: counter(step) "."; color: var(--muted); font-weight: 600; }
.steps li > .address { grid-column: 2; }
.steps b { font-weight: 600; }
.store-row { margin-top: 24px; }

.address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 5px 5px 5px 12px;
  background: var(--card);
  border-radius: 10px;
}
.address code { flex: 1; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.address button {
  font: 500 13px var(--sans);
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 12.5px;
  color: var(--muted);
}
footer span { flex-basis: 100%; }

/* The right half: a soft blue panel, the height of the window, with the walkthrough as a window on it. */
.art {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 48px clamp(28px, 4vw, 56px);
  background: linear-gradient(160deg, #dde7f1, #c6d6e6);
  overflow: visible;
  z-index: 1;
  margin-right: calc(-1 * var(--panel-extra));
}
@media (prefers-color-scheme: dark) {
  .art { background: linear-gradient(160deg, #26323e, #1c2630); }
}
.art #demo { width: calc(100% + var(--overhang) - var(--panel-extra)); max-width: none; }
.art .az-stage {
  border-radius: 12px;
  border-radius: 10px;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.22), 0 22px 48px -14px rgb(20 40 70 / 0.45), 0 4px 12px rgb(20 40 70 / 0.12);
}
.art .az-dots i:nth-child(1) { background: #ff5f57; }
.art .az-dots i:nth-child(2) { background: #febc2e; }
.art .az-dots i:nth-child(3) { background: #28c840; }

/* Narrow screens: the walkthrough on top, then the steps. */
@media (max-width: 820px) {
  body { grid-template-columns: minmax(0, 1fr); --overhang: 0px; --panel-extra: 0px; }
  .art { position: static; height: auto; padding: 28px 20px; order: 1; }
  .side { order: 2; }
  .side { padding: 24px 22px; }
  .brand { margin-bottom: 28px; }
}
@media (prefers-color-scheme: dark) { .install { background: #1c1c1b; box-shadow: none; } }

/* The landing page's nav, across the top of both columns. */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 22px 40px; }
/* No fill: the nav sits over the blue panel and the page; leave room under it. */
body { position: relative; }
.side { padding-top: 110px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 650 18px var(--sans); letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark img { display: block; }
.nav nav { display: flex; align-items: center; gap: 28px; font: 14px var(--sans); }
.nav nav > a { color: var(--muted); text-decoration: none; }
.nav nav > a:hover, .nav nav > a[aria-current="page"] { color: var(--ink); }
.nav .dl-sm .dl-btn, .nav .dl-sm .dl-btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 820px) {
  .nav { padding: 16px 20px; }
  .art { padding-top: 76px; }
  .side { padding-top: 28px; }
  .nav nav > a { display: none; }
}
