/* Self-hosted, so no visitor IP goes to a font CDN. Same faces as refreshyourmac.com. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

/* The RefreshYourMac palette, so the family reads as one. */
:root {
  --bg: #070a1c;
  --bg-top: #0b1230;
  --panel: #0e1532;
  --line: #26305a;
  --line-soft: #1a2246;
  --text: #e6ecff;
  --text-2: #b4bedc;
  --muted: #8a96b8;
  --accent: #3ddc84;
  --cyan: #2bd5ff;
  --warn: #f5b23d;
  --alert: #ff7a7a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-top), var(--bg) 70%) fixed, var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

main.wrap { flex: 1; }

.top { padding-top: 28px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 20px/1 "Outfit", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; }

.hero { padding: 72px 0 56px; max-width: 680px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 600 13px/1.4 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font: 600 clamp(38px, 7vw, 64px)/1.05 "Outfit", system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.lede { margin: 0; font-size: 19px; color: var(--text-2); }

.section-label {
  margin: 0 0 16px;
  color: var(--muted);
  font: 600 13px/1.4 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.app-icon-glyph {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.app-body { min-width: 0; }
.app-body p { margin: 0 0 10px; color: var(--text-2); font-size: 15.5px; }

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

h3 {
  margin: 0;
  font: 600 19px/1.3 "Outfit", system-ui, sans-serif;
}

.platform {
  margin: 2px 0 8px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 11.5px/1.4 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill-live { color: #05070f; background: var(--accent); }
.pill-soon { color: #05070f; background: var(--warn); }
.pill-planned { color: var(--muted); border: 1px solid var(--line); }

.more {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

.more-tools { margin: 22px 0 0; color: var(--muted); }

.foot {
  padding-top: 64px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 14.5px;
}
.foot p { margin: 0 0 6px; }

@media (max-width: 720px) {
  .apps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .wrap { padding: 0 16px; }
  .app { padding: 18px; gap: 14px; }
  .app-icon { width: 52px; height: 52px; border-radius: 12px; }
}

/* Product pages (/iphone/): one article column, the same palette. */
.guide { padding: 56px 0 20px; max-width: 46rem; }
.guide h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 20px; }
.guide-answer {
  margin: 0 0 8px; font-size: 19px; line-height: 1.55; color: var(--text);
  border-left: 3px solid var(--cyan); padding-left: 18px;
}
.guide-answer a { color: var(--cyan); }
.prose h2 { margin: 40px 0 12px; font: 600 23px/1.3 "Outfit", system-ui, sans-serif; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0 0 8px; }
.guide-cta { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 28px; }
.guide-cta-t { margin: 0 0 18px; font-size: 16px; color: var(--text-2); }

/* Forms */
[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--accent); color: #05070f; font: 600 16px/1 "Outfit", system-ui, sans-serif;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.7; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.area { resize: vertical; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.form-error { margin: 10px 0 0; font-size: 15px; color: var(--alert); }
.done-t { margin: 0; font: 600 22px/1.3 "Outfit", system-ui, sans-serif; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wl-field { display: flex; flex-direction: column; gap: 10px; }
.wl-label { font-weight: 600; font-size: 16px; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-row .input { flex: 1 1 240px; width: auto; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.sform { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 15px; }
.wide { grid-column: 1 / -1; }
.sform .note, .sform .form-error { margin: 0; }
.attach {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 11px; font-size: 15px; color: var(--muted); cursor: pointer;
}
.attach:hover { border-color: var(--accent); color: var(--text); }
.attach:has(.attach-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.attach-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.attach-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .guide { padding-top: 36px; }
  .panel { padding: 22px 16px; }
}
