/* AmeriWay site. System fonts only. No scripts, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #94a3b8;
  --link: #1e3a8a;
  --red: #b91c1c;
  --accent-bg: #1e3a8a;
  --accent-text: #ffffff;
  --focus: #1d4ed8;
  --warn-bg: #fef3c7;
  --warn-text: #78350f;
  --warn-border: #b45309;
  --mark-bg: #fef08a;
  --mark-text: #422006;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --border: #64748b;
    --link: #93c5fd;
    --red: #f87171;
    --accent-bg: #93c5fd;
    --accent-text: #0f172a;
    --focus: #facc15;
    --warn-bg: #422006;
    --warn-text: #fde68a;
    --warn-border: #f59e0b;
    --mark-bg: #713f12;
    --mark-text: #fef9c3;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.prose {
  max-width: 44rem;
}

/* Links */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

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

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent-bg);
  color: var(--accent-text);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}

.skip:focus {
  top: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  display: block;
}

.brand .way {
  color: var(--red);
}

.langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--link);
}

.langs a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  background: var(--bg-alt);
  box-shadow: inset 0 -3px 0 var(--red);
}

/* Type */
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

main {
  padding-top: 8px;
  padding-bottom: 48px;
}

.lead {
  font-size: 1.2rem;
  max-width: 40rem;
}

.muted {
  color: var(--muted);
}

/* Hero */
.hero {
  background: var(--bg-alt);
  border-radius: 16px;
  margin-top: 24px;
  padding: 28px 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero-mark {
  display: none;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 1.2em 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  text-decoration: underline;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

.price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

/* Notices */
.banner {
  margin: 24px 0 8px;
  padding: 14px 16px;
  border: 2px solid var(--warn-border);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn-text);
}

.banner p {
  margin: 0;
}

.banner .big {
  font-size: 1.25rem;
  font-weight: 800;
}

.notice {
  padding: 14px 16px;
  border-left: 6px solid var(--red);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

mark.fill {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0 0.3em;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}

.legal-note {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.95rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px 0 0;
}

.site-footer p {
  margin: 0 0 0.5em;
}

/* Wider screens */
@media (min-width: 48em) {
  .hero {
    padding: 44px 40px;
    grid-template-columns: 1fr 160px;
    align-items: center;
  }

  .hero-mark {
    display: block;
    width: 160px;
    height: 160px;
  }

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

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