/* Cartie website: shared page styles, built on the app's tokens (tokens.css). */
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-round); }
a { color: var(--shop-text); text-underline-offset: 3px; }
a:hover { color: var(--shop-edge); }

.site { min-height: 100vh; display: flex; flex-direction: column; }

.top { background: var(--surface); box-shadow: var(--ledge); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { font-size: 26px; line-height: 30px; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-full); text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--go); color: var(--on-go); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--tint); }
.langs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-full); text-decoration: none; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.langs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--ledge-sm); }

.hero { max-width: 1040px; margin: 0 auto; padding: 48px 24px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { margin: 0; font-size: 44px; line-height: 50px; font-weight: 700; text-wrap: balance; }
.hero p { margin: 0; font-size: 19px; line-height: 28px; font-weight: 500; color: var(--ink-muted); max-width: 60ch; }
.hero-art { flex: 1 1 160px; display: flex; justify-content: center; }
.hero-art img { width: 168px; height: 168px; filter: drop-shadow(0 6px 6px rgba(15, 74, 66, 0.22)); }
.stamp { align-self: flex-start; padding: 6px 12px; border-radius: var(--radius-full); background: var(--tint); color: var(--ink-muted); font-size: 14px; font-weight: 600; }

.body { max-width: 1040px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius-2xl); box-shadow: var(--ledge-lg); padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 24px; line-height: 30px; font-weight: 700; }
.card h2 .num { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--sun); color: var(--on-sun); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.card p, .card li { margin: 0; font-size: 17px; line-height: 27px; font-weight: 500; max-width: 68ch; }
.card ul, .card ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.card strong { font-weight: 700; }
[hidden] { display: none !important; }
.muted { color: var(--ink-muted); }
.never { background: var(--tint); border-radius: var(--radius-xl); padding: 18px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; }
.never span { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 600; }
.never svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--go-text); }
.table-box { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 23px; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 2px solid var(--tint); vertical-align: top; }
th { font-weight: 700; color: var(--ink-muted); font-size: 15px; }
.ph { background: #FFF3C4; color: #6B4E00; border-radius: 6px; padding: 0 6px; font-weight: 600; }

.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--go); color: var(--on-go); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.step p { padding-top: 5px; }
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.path b { background: var(--tint); border-radius: var(--radius-sm); padding: 2px 10px; font-weight: 700; }
.warn { background: var(--urgent-soft); color: var(--urgent-text); border-radius: var(--radius-xl); padding: 16px 20px; font-size: 17px; line-height: 26px; font-weight: 600; }
.mail { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--radius-lg); background: var(--go); color: var(--on-go); box-shadow: var(--ledge-go); text-decoration: none; font-size: 19px; font-weight: 700; align-self: flex-start; }
.mail:hover { color: var(--on-go); background: var(--go-edge); }

.qa { border-top: 2px solid var(--tint); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.qa:first-of-type { border-top: 0; padding-top: 0; }
.qa h3 { margin: 0; font-size: 19px; line-height: 25px; font-weight: 700; }

.foot { margin-top: auto; position: relative; padding-top: 70px; }
.foot svg.hills { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 70px; display: block; }
.foot-in { background: var(--hill-deep); }
.foot-row { max-width: 1040px; margin: 0 auto; padding: 8px 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--ink); font-size: 15px; font-weight: 600; }
.foot-row a { color: var(--ink); }
.foot-row .sp { margin-inline-end: auto; }

@media (max-width: 640px) {
  .top-in { padding: 10px 16px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 22px; line-height: 26px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; }
  .nav a { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 15px; }
  .langs a { padding: 0 9px; font-size: 13px; }
  .hero { padding: 28px 16px 4px; gap: 12px; flex-direction: column-reverse; align-items: flex-start; }
  .hero h1 { font-size: 32px; line-height: 38px; }
  .hero p { font-size: 17px; line-height: 26px; }
  .hero-text { flex: 0 0 auto; }
  .hero-art { flex: 0 0 auto; }
  .hero-art img { width: 96px; height: 96px; }
  .body { padding: 16px 16px 48px; gap: 12px; }
  .card { padding: 20px 18px; border-radius: var(--radius-xl); }
  .card h2 { font-size: 21px; line-height: 27px; }
  .card p, .card li { font-size: 16px; line-height: 25px; }
  .never { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; padding: 12px 0; border-bottom: 2px solid var(--tint); }
  tr:last-child { border-bottom: 0; }
  td { display: block; padding: 2px 0; border: 0; }
  td + td { color: var(--ink-muted); }
  .mail { align-self: stretch; justify-content: center; font-size: 17px; }
  .foot-row { padding: 8px 16px 24px; font-size: 14px; }
  .foot-row .sp { flex-basis: 100%; }
}
