/* SMSReader — site styles. One sheet for every page, in both languages. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e2e0db;
  --accent: #2f6fd6;
  --accent-soft: #e8f0fc;
  --page: #6b6b6b;
  --radius: 14px;
  --width: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1e1e1f;
    --text: #f2f2f2;
    --muted: #a8a8ad;
    --line: #333336;
    --accent: #6ea1ff;
    --accent-soft: #1d2a40;
    --page: #2a2a2b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  font-size: 16px;
}

:lang(en) body, body:lang(en) { line-height: 1.6; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* Hero */
.hero { padding: 72px 20px 56px; text-align: center; }
.hero img.icon {
  width: 120px; height: 120px; border-radius: 27px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.01em; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.store-link {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.store-link:hover { text-decoration: none; opacity: 0.88; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* The picture of a spread at the top: two pages, nothing more. */
.spread {
  margin: 48px auto 0;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  background: var(--page);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 24px;
}
.spread span {
  flex: 0 1 46%;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, #d9d9d9 14px 16px, transparent 16px 22px);
  background-size: 100% 70%;
  background-position: center 50%;
  background-repeat: no-repeat;
}

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 32px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.callout ul { margin: 8px 0 0; padding-left: 1.2em; }
.callout li { margin: 4px 0; }

/* Documents: privacy policy, support */
.doc { max-width: 760px; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.25; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.table-scroll { overflow-x: auto; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .copy { margin-left: auto; }

@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; gap: 12px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
