/* peachvpn.app — theme lifted from peachvpn.net (see docs/DESIGN_BRIEF.md) */

:root {
  --ink: #231f20;
  --text: #242021;
  --muted: #787879;
  --orange: #ed782a;
  --orange-nav: #ee582a;
  --orange-hover: #ff8309;
  --green: #82bc41;
  --amber: #ffb43f;
  --cream: #fffbf5;
  --cream-deep: #fffdf9;
  --card-border: #efe7d8;
  --band-border: #dfd9b4;
  --dotted: #cacaca;
  --row-border: #f3ede2;
  --ghost-border: #f3d4bb;
  --icon-bg: #fff3e6;
  --chip-bg: #f5f5f5;
  --footer: #847e6f;
  --shadow: 0 2px 2.96px 1.04px rgba(0, 0, 0, 0.235);
  --font: 'Ubuntu', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Ubuntu Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--orange-hover); }
h1, h2, h3 { margin: 0; font-weight: 700; text-transform: uppercase; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1218px; /* 1170 + gutters */
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}
.btn-green {
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.btn-green:hover, .btn-green:focus-visible {
  background: var(--amber);
  color: #ffffff;
  box-shadow: 0 1px 3.96px 0.04px rgba(0, 0, 0, 0.235);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  padding: 9px 12px;
  border-radius: 3px;
  min-height: 40px;
}
.btn-ghost:hover { background: var(--icon-bg); color: var(--orange); }
.btn-icon { display: inline-flex; line-height: 0; }

/* ---------- Header ---------- */
.header { background: var(--cream); padding: 30px 0 25px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; line-height: 0; }
.logo img { width: 165px; height: 45px; display: block; }
.header-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffab4b 0%, #ff942b 38%, #ed782a 100%);
  color: #ffffff;
  padding: 70px 0 90px;
}
.hero-stripes {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 44px, rgba(255,255,255,0.55) 44px 46px);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; width: 600px; max-width: 100%; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.hero h1 { font-size: 52px; line-height: 1.05; color: #ffffff; }
.hero-lead { font-size: 20px; line-height: 1.5; max-width: 540px; }
.hero-cta-block { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.btn-hero {
  align-self: flex-start;
  gap: 12px;
  font-size: 20px;
  padding: 14px 22px;
  min-height: 56px;
}
.hero-file { font-size: 14px; opacity: 0.92; }
.hero-alt { font-size: 15px; opacity: 0.85; }
.hero-art { width: 500px; flex-shrink: 0; display: flex; justify-content: flex-end; align-items: center; }
.hero-art img { width: 500px; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(120, 40, 0, 0.25)); }

/* ---------- Sections ---------- */
.section { padding: 75px 0 80px; }
.section-cream {
  background: var(--cream);
  border-top: 2px solid var(--band-border);
  border-bottom: 2px solid var(--band-border);
  padding: 70px 0 80px;
}
.section-head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; }
.section-head p { font-size: 16px; color: var(--muted); }
.section-head-left { align-items: flex-start; text-align: left; margin-bottom: 0; }
.section-head-left p { max-width: 640px; }
.notice { color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* ---------- Platform cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px 28px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: #ffffff;
  transition: 0.3s;
}
.card:hover { box-shadow: 0 8px 24px rgba(35, 31, 32, 0.08); border-color: #ffd7b3; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-title { display: flex; flex-direction: column; gap: 3px; }
.card h3 { font-size: 20px; }
.card-req { font-size: 14px; color: var(--muted); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.chip-version { background: var(--chip-bg); border-radius: 3px; padding: 3px 8px; font-weight: 500; white-space: nowrap; }
.card-meta-note { color: var(--muted); }
.card-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.card .btn-green { font-size: 16px; padding: 13px 16px; min-height: 48px; }

/* ---------- Direct downloads table ---------- */
.downloads-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.signed-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 10px 14px;
  flex-shrink: 0;
}
.table { background: #ffffff; border: 1px solid var(--card-border); border-radius: 6px; overflow: hidden; }
.table-cols { display: grid; grid-template-columns: 300px 110px 1fr 90px 170px 150px; gap: 16px; align-items: center; }
.table-head {
  padding: 12px 24px;
  background: var(--chip-bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream-deep);
}
.group-head svg { color: var(--orange); }
.row {
  padding: 14px 24px;
  border-top: 1px solid var(--row-border);
  transition: background 0.3s;
}
.row:hover { background: var(--cream); }
.c-file { font-family: var(--mono); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.c-version { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chip-latest {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--green);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}
.chip-top { display: none; }
.c-for, .c-size { font-size: 14px; }
.for-short { display: none; }
.c-sha { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-sha-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--orange); background: var(--icon-bg); }
.copy-btn.copied { color: var(--green); }
.c-dl .btn-green { font-size: 14px; padding: 10px 14px; gap: 8px; width: 100%; box-shadow: none; }
.c-dl .btn-ghost { font-size: 14px; font-weight: 700; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--ghost-border); width: 100%; }
.row-old { color: var(--muted); }
.row-old .c-file { color: #444; }
.older-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border: 0;
  border-top: 1px solid var(--card-border);
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}
.older-toggle svg { color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
.older-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.older-toggle .older-hint { font-weight: 400; text-transform: none; color: var(--muted); }
.older-toggle .older-count { display: none; }
.table-error { padding: 24px; color: var(--muted); text-align: center; }
.shortlinks { padding: 14px 24px; border-top: 1px solid var(--card-border); background: var(--cream-deep); font-size: 14px; color: var(--muted); line-height: 1.8; }
.shortlinks a { color: var(--orange); font-size: 14px; }
.shortlinks-sep { color: var(--dotted); }
.dl-code { white-space: nowrap; }
.dl-code strong { color: var(--ink); font-weight: 700; }

/* ---------- Downloader section ---------- */
.section-downloader { background: #ffffff; }
.downloader-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.downloader-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; }
.downloader-steps li::marker { color: var(--green); font-weight: 700; }
.code-cards { display: flex; flex-direction: column; gap: 16px; }
.code-card { border: 1px solid var(--card-border); border-radius: 6px; background: var(--cream); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.code-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.code-card-head .card-icon { width: 48px; height: 48px; }
.code-card h3 { font-size: 17px; }
.code-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.code-value { font-size: 44px; line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.code-url { font-size: 14px; color: var(--muted); }
.code-url a { color: var(--orange); }
.code-file { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Install tips ---------- */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tip { display: flex; flex-direction: column; gap: 12px; padding: 8px 40px; border-right: 6px dotted var(--dotted); }
.tip:first-child { padding-left: 0; }
.tip:last-child { padding-right: 0; border-right: 0; }
.tip-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.tip-body { display: flex; flex-direction: column; gap: 12px; }
.tip h3 { font-size: 20px; }
.tip p { font-size: 16px; line-height: 1.6; }
.tip-link { color: var(--orange); }

/* ---------- Green band ---------- */
.band { background: var(--green); padding: 40px 0; color: #ffffff; }
.band-inner { display: flex; align-items: center; justify-content: center; gap: 25px; flex-wrap: wrap; }
.band-text { font-size: 32px; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 12px 35px 15px 25px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
}
.btn-outline-white:hover { background: var(--amber); border-color: var(--amber); color: #ffffff; }
.band-link { font-size: 18px; font-weight: 700; color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.band-link:hover { color: #ffffff; opacity: 0.85; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); border-bottom: 4px solid var(--orange); padding: 30px 0 40px; color: #ffffff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; display: block; border-radius: 10px; background: #ffffff; flex-shrink: 0; }
.footer-brand p { font-size: 14px; line-height: 1.5; max-width: 560px; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #ffffff; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 14px; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-art { width: 40%; }
  .hero-art img { width: 100%; }
  .hero h1 { font-size: 44px; }
  .tips { grid-template-columns: 1fr; gap: 24px; }
  .downloader-grid { grid-template-columns: 1fr; gap: 28px; }
  .tip { padding: 0; border-right: 0; }
  .downloads-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Table becomes stacked cards */
  .table { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .table-head { display: none; }
  .group-head { border: 0; background: transparent; padding: 18px 0 8px; }
  .row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "file chip" "meta meta" "sha sha" "dl dl";
    gap: 10px;
    padding: 16px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
  }
  .row:hover { background: #ffffff; }
  .c-file { grid-area: file; font-size: 14px; }
  .chip-top { display: inline-block; grid-area: chip; }
  .c-version .chip-latest { display: none; }
  .c-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 13px; color: var(--muted); }
  .c-for, .c-version, .c-size { font-size: 13px; color: var(--muted); }
  .c-for { order: 1; } .c-version { order: 2; gap: 0; } .c-size { order: 3; }
  .c-for::after, .c-version::after { content: "·"; margin-left: 6px; }
  .for-long { display: none; } .for-short { display: inline; }
  .c-sha { grid-area: sha; font-size: 12px; }
  .c-sha::before { content: "sha256"; margin-right: 2px; }
  .c-dl { grid-area: dl; }
  .c-dl .btn-green, .c-dl .btn-ghost { min-height: 44px; padding: 12px 14px; }
  .older-toggle { justify-content: center; border: 0; border-radius: 6px; min-height: 48px; }
  .older-toggle .older-hint { display: none; }
  .older-toggle .older-count { display: inline; }
  .older-rows { margin-top: 10px; }
  .table-error { background: #ffffff; border: 1px solid var(--card-border); border-radius: 6px; }
  .shortlinks { background: #ffffff; border: 1px solid var(--card-border); border-radius: 6px; padding: 14px 16px; margin-top: 10px; }
  .shortlinks-label { display: block; }
}

@media (min-width: 1100px) {
  .row, .table-head { display: grid; }
  .c-meta { display: contents; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .header { padding: 18px 0; }
  .logo img { width: 132px; height: 36px; }
  .header-tag { font-size: 11px; }

  .hero { background: linear-gradient(150deg, #ffab4b 0%, #ff942b 40%, #ed782a 100%); padding: 40px 0 0; }
  .hero-stripes { background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 34px, rgba(255,255,255,0.55) 34px 36px); }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .hero-copy { width: 100%; align-items: center; gap: 16px; }
  .hero-kicker { font-size: 12px; }
  .hero-kicker-domain { display: none; }
  .hero h1 { font-size: 36px; line-height: 1.08; }
  .hero-lead { font-size: 17px; }
  .hero-cta-block { width: 100%; align-items: center; margin-top: 0; }
  .btn-hero { align-self: stretch; width: 100%; font-size: 18px; padding: 16px 20px; gap: 10px; }
  .hero-file, .hero-alt { font-size: 14px; }
  .hero-art { width: 100%; justify-content: center; margin-top: 6px; margin-bottom: -14px; }
  .hero-art img { width: 320px; max-width: 100%; filter: none; }

  .section { padding: 44px 0 40px; }
  .section-cream { padding: 40px 0 44px; }
  .section-head { gap: 6px; margin-bottom: 22px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }
  .section-head-left { margin-bottom: 0; }

  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; gap: 14px; }
  .card-head { gap: 14px; }
  .card-icon { width: 52px; height: 52px; }
  .card h3 { font-size: 18px; }
  .card-req { font-size: 13px; }
  .card .btn-green { font-size: 15px; padding: 14px 16px; min-height: 48px; }
  .card .btn-ghost { border: 1px solid var(--ghost-border); padding: 11px 12px; min-height: 44px; }
  .card-actions { gap: 8px; }

  .downloads-head { margin-bottom: 18px; }
  .signed-note { font-size: 13px; }
  .tips { gap: 22px; }
  .code-card { padding: 18px; }
  .code-value { font-size: 36px; }
  .downloader-steps { font-size: 15px; }
  .tip { flex-direction: row; gap: 14px; }
  .tip-num { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }
  .tip-body { display: flex; flex-direction: column; gap: 6px; }
  .tip h3 { font-size: 17px; }
  .tip p { font-size: 15px; line-height: 1.55; }

  .band { padding: 32px 0; }
  .band-inner { flex-direction: column; gap: 16px; text-align: center; }
  .band-text { font-size: 24px; }
  .btn-outline-white { font-size: 20px; padding: 12px 28px; }
  .band-link { font-size: 16px; }

  .footer { padding: 28px 0 32px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-brand { align-items: flex-start; gap: 12px; }
  .footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
  .footer-brand p { font-size: 13px; }
  .footer-links { gap: 16px 22px; }
  .footer-links a { font-size: 14px; }
  .footer-copy { font-size: 13px; padding-top: 16px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
