/* ═══════════════════════════════════════════════════════════════
   EmailGPT - install.css (loaded by /install/ only)
   The direct download and its step-by-step pictures, on the same
   brand tokens as styles.css. Page classes are .install-*; the
   drawn browser and Windows screens are .ill-*.
   ═══════════════════════════════════════════════════════════════ */

/* Colors of the screens being drawn. They belong to Edge and Windows, not to
   the brand, so they are named here instead of being added to styles.css. */
.install-body {
  --ill-panel:      #ffffff;
  --ill-panel-edge: #d1d1d1;
  --ill-rule:       #e5e5e5;
  --ill-text:       #1b1b1b;
  --ill-text-soft:  #5c5c5c;
  --ill-link:       #0067c0;
  --ill-button:     #0067c0;
  --ill-warn:       #c4314b;
  --ill-windows:    #005a9e;
  --ill-setup:      #f0f0f0;
  --ill-setup-edge: #adadad;
  --ill-bar:        #06b025;
  --ill-font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ══════════════════════════════════════
   HEAD - title and the download itself
══════════════════════════════════════ */
.install-head {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}

.install-head-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13,148,136,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 40% 20%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 40% 20%, black 0%, transparent 72%);
}

.install-head-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 20ch;
}

.install-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  max-width: 64ch;
}

.install-lead a {
  color: var(--teal-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 3px;
}

.install-lead a:hover,
.install-lead a:focus-visible { color: var(--white); }

.install-lead a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.install-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}

/* ══════════════════════════════════════
   BODY
══════════════════════════════════════ */
.install-body {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  background: var(--surface);
}

.install-body .container {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

/* Why the warnings appear, and how to tell the file is ours. */
.install-why {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.install-why h2,
.install-help-more h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.install-why p,
.install-help-more p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 84ch;
}

.install-why strong,
.install-step strong {
  color: var(--ink);
  font-weight: 600;
}

/* A file name or an address, as the reader will see it written. */
.install-name {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92em;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.install-steps-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-steps-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
}

.install-steps-head p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 84ch;
}

/* ── Steps: words on the left, the screen on the right ── */
.install-steps {
  list-style: none;
  counter-reset: install-step;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-step {
  counter-increment: install-step;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}

.install-step-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-step-copy::before {
  content: counter(install-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.install-step h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.install-step p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* The other browser, said once and quietly. */
.install-aside {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.install-pictures {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.install-figure figcaption {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

.install-capture {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.install-help-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-help-more a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-help-more a:hover,
.install-help-more a:focus-visible { color: var(--teal); }

/* ══════════════════════════════════════
   ILLUSTRATIONS - drawn screens
   Each one is a single picture to assistive technology (role="img" with a
   label that says what it shows), so the words inside are not read twice.
══════════════════════════════════════ */
.ill {
  width: 100%;
  max-width: 440px;
  font-family: var(--ill-font);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

/* The control the step tells the reader to press. */
.ill-press {
  outline: 3px solid var(--amber-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Edge: the Downloads list and the confirmation ── */
.ill-edge {
  background: var(--ill-panel);
  color: var(--ill-text);
  border: 1px solid var(--ill-panel-edge);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 16px;
}

.ill-edge-bar {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ill-rule);
}

.ill-edge-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 12px;
}

.ill-warn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ill-warn);
  color: var(--ill-panel);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.ill-edge-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ill-text-soft);
}

.ill-edge-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ill-panel-edge);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.ill-menu {
  width: min(100%, 220px);
  margin: 12px 0 0 auto;
  padding: 4px;
  background: var(--ill-panel);
  border: 1px solid var(--ill-panel-edge);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.ill-menu li { padding: 6px 10px; }

/* A marked row keeps its ring inside the menu instead of over its neighbours. */
.ill-menu .ill-press { outline-offset: -2px; }

.ill-edge-heading {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ill-edge-text {
  margin-top: 8px;
  color: var(--ill-text-soft);
}

.ill-edge-name { margin-top: 10px; }

.ill-edge-more {
  margin-top: 10px;
  font-weight: 600;
}

.ill-edge-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--ill-link);
}

.ill-edge-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.ill-edge-button {
  min-width: 76px;
  padding: 5px 14px;
  border: 1px solid var(--ill-panel-edge);
  border-radius: 4px;
  text-align: center;
}

.ill-edge-button--main {
  background: var(--ill-button);
  border-color: var(--ill-button);
  color: var(--ill-panel);
}

/* ── Windows: "Windows protected your PC" ── */
.ill-windows {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  background: var(--ill-windows);
  color: var(--ill-panel);
  box-shadow: var(--shadow-lg);
  padding: 24px 22px 20px;
}

.ill-windows-close {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  background: var(--ill-panel);
  color: var(--ill-text);
  font-size: 18px;
  line-height: 1;
}

.ill-windows-title {
  font-size: 23px;
  font-weight: 300;
  line-height: 1.2;
  padding-right: 30px;
}

.ill-windows-text { margin-top: 14px; }

.ill-windows-link {
  align-self: flex-start;
  margin-top: 4px;
  text-decoration: underline;
}

.ill-windows-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  margin-top: 14px;
}

.ill-windows-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.ill-windows-button {
  min-width: 92px;
  padding: 6px 14px;
  background: var(--ill-panel);
  color: var(--ill-text);
  font-weight: 600;
  text-align: center;
}

/* ── The installer's own small window ── */
.ill-setup {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 360px;
  background: var(--ill-setup);
  color: var(--ill-text);
  border: 1px solid var(--ill-setup-edge);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}

.ill-setup-icon {
  width: 44px;
  height: 44px;
}

.ill-setup-bar {
  height: 14px;
  margin-top: 8px;
  background: var(--ill-panel);
  border: 1px solid var(--ill-setup-edge);
}

.ill-setup-bar span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--ill-bar);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .install-step {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .install-cta { align-items: stretch; }
  .install-why { padding: 18px 18px; }
  .ill-windows-title { font-size: 20px; }
}
