/* Potato static design system. Font Awesome 6 Free SVG subset. No runtime CSS framework. */
:root {
  --ink: #102038;
  --ink-rgb: 16, 32, 56;
  --paper: #f3f7fd;
  --card: #ffffff;
  --line: #d5e3f7;
  --muted: #3d5273;
  --body: #1c2d4a;
  --brand: #4a83ee;
  --brand-dark: #2c63d4;
  --brand-rgb: 74, 131, 238;
  --brand-soft: #e7f0fd;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(16, 32, 56, 0.28);
  --max: 72rem;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--body);
  background: var(--card);
  font-family: "Segoe UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg.fa {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.15em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  background: rgba(44, 99, 212, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  color: #d5e3f7;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible,
.lang a:hover,
.footer-nav a:hover {
  color: #fff;
}

.lang {
  display: flex;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #9fb6db;
}

.lang [aria-current="page"] {
  color: #fff;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.drawer {
  display: none;
  padding: 0.4rem 1rem 1rem;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer a {
  display: block;
  padding: 0.7rem 0.75rem;
  color: #e7f0fd;
  border-radius: 10px;
}

.drawer a:hover,
.drawer a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.drawer.is-open {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(var(--brand-rgb), 0.9);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2c63d4;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-on-dark {
  background: #fff;
  color: var(--brand-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 100% -10%, rgba(var(--brand-rgb), 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(var(--brand-rgb), 0.16), transparent 50%),
    var(--paper);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--brand-dark);
}

.lede {
  max-width: 38rem;
  margin-top: 1.15rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.answer-box {
  max-width: 38rem;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(231, 240, 253, 0.92);
  box-shadow: var(--shadow);
}

.answer-box strong,
.section-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-figure img,
.media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}

.hero-figure img {
  aspect-ratio: 1024 / 607;
}

.media img {
  aspect-ratio: 16 / 9;
}

.stats {
  background: var(--ink);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.8rem 0;
}

.stats dd:first-of-type {
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stats dd + dd {
  margin-top: 0.2rem;
  color: #c5d8f8;
  font-size: 0.82rem;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.site-header :focus-visible {
  outline-color: #fff;
}

.section {
  padding: 4.2rem 0;
}

.crumbs {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.stars {
  margin: 0.7rem 0;
  color: #2c63d4;
  letter-spacing: 0.08em;
}

.quote {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.edition {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.edition-featured {
  border-color: rgba(var(--brand-rgb), 0.45);
  background: var(--brand-soft);
}

.avatar {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.howto-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.icon-badge {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.icon-badge .fa {
  width: 1.15rem;
  height: 1.15rem;
}

.section-alt {
  background: var(--paper);
}

.section h2,
.cta-band h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-intro {
  max-width: 46rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.cards,
.use-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.step,
.use-card,
.faq details,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card,
.step,
.use-card {
  padding: 1.25rem 1.3rem;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p,
.step p,
.use-card p,
.faq p,
.prose p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.feature-row {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.4rem;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 3rem;
}

.media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px -22px rgba(16, 32, 56, 0.28);
}

.step-num {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  margin-top: 1.6rem;
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e7f0fd;
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
}

tbody th {
  color: var(--ink);
  font-weight: 700;
}

.good {
  color: var(--brand-dark);
  font-weight: 700;
}

.faq {
  max-width: 48rem;
}

.faq details {
  padding: 0 1.15rem;
}

.faq details + details {
  margin-top: 0.7rem;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  margin-top: 0.5rem;
  transform: rotate(-135deg);
}

.faq p {
  padding-bottom: 1rem;
}

.cta-band {
  padding-bottom: 4.5rem;
}

.cta-panel {
  padding: 2.5rem 1.4rem;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  max-width: 38rem;
  margin: 0.7rem auto 0;
  color: #c5d8f8;
}

.cta-panel .btn {
  margin-top: 1.4rem;
}

.site-footer {
  background: #0f1b33;
  color: #9fb6db;
}

.footer-inner {
  padding: 2rem 0 1.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  font-size: 0.88rem;
}

.legal {
  padding-bottom: 2rem;
  font-size: 0.8rem;
  line-height: 1.7;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
  color: var(--ink);
  font-size: 1.35rem;
}

.prose a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin: 0.7rem 0 0 1.15rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards,
  .use-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .drawer {
    display: none !important;
  }

  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 1;
  }

  .feature-row.reverse .media {
    order: 2;
  }

  .cards,
  .use-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-panel {
    padding: 3.2rem;
  }

  .howto-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .edition {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
