/* ============================================================
   Shiru — shiru-journal.com
   Markenidentität: warm-editoriales Paper-Design
   Tokens gespiegelt aus lib/utils/style_guide.dart (AppColors)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Zen+Maru+Gothic:wght@500&display=swap");

:root {
  /* AppColors (light) */
  --bg: #faf7f2;
  --surface: #ffffff;
  --panel: #f0ede6;
  --warm: #f5efe0;
  --text: #1a1816;
  --muted: #6b6560;
  --dust: #a09a93;
  --gold: #c49a3c;
  --gold-deep: #a67e2a;
  --gold-warm: #d4b06a;
  --gold-soft: rgba(196, 154, 60, 0.1);
  --gold-glow: rgba(196, 154, 60, 0.28);
  --teal: #3d9488;
  --teal-deep: #358278;
  --teal-soft: rgba(61, 148, 136, 0.1);
  --rule: rgba(26, 24, 22, 0.08);
  --rule-strong: rgba(26, 24, 22, 0.14);

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --accent-jp: "Zen Maru Gothic", var(--sans);

  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  /* Sanfter warmer Verlauf statt flacher Fläche */
  background-image:
    radial-gradient(1100px 480px at 85% -8%, rgba(212, 176, 106, 0.13), transparent 64%),
    radial-gradient(900px 420px at -12% 12%, rgba(61, 148, 136, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

::selection {
  background: var(--gold-glow);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 80px;
}

/* ---------- Typografie ---------- */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

/* Goldener Akzentstrich auf der Trennlinie */
header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-warm));
  border-radius: 2px;
}

header h1 {
  font-size: 40px;
  margin: 0 0 10px;
}

h2 {
  font-size: 26px;
  margin: 44px 0 14px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
}

p {
  margin: 0 0 16px;
}

.kicker {
  font-family: var(--accent-jp);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 14px;
}

/* 知る — japanisches Akzentzeichen vor dem Kicker */
.kicker::before {
  content: "知る";
  letter-spacing: 0.1em;
  margin-right: 10px;
  padding-right: 12px;
  border-right: 1px solid var(--rule-strong);
  color: var(--dust);
}

.last-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- Links ---------- */

a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold-glow);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.lang-switch {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 28px;
  text-align: right;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 5px 14px;
  transition: all 0.15s ease;
}

.lang-switch a:hover {
  color: var(--text);
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Listen, Tabellen, Callouts ---------- */

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

li::marker {
  color: var(--gold);
}

strong {
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--warm);
}

.callout {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
}

.placeholder {
  background: rgba(212, 84, 84, 0.12);
  color: #a23838;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold-deep);
}

/* ============================================================
   Landing Page
   ============================================================ */

.hero {
  text-align: center;
  padding: 40px 0 8px;
}

/* App-Icon (Wachssiegel) als Logo */
.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(196, 154, 60, 0.3));
}

/* Wortmarke */
.hero h1 {
  font-size: clamp(44px, 9vw, 64px);
  margin: 0 0 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero .tagline {
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Gestaffelter Page-Load: ruhig, editorial */
.hero > *,
.features .feature {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero > :nth-child(2) { animation-delay: 0.06s; }
.hero > :nth-child(3) { animation-delay: 0.12s; }
.hero > :nth-child(4) { animation-delay: 0.2s; }
.hero > :nth-child(5) { animation-delay: 0.28s; }
.hero > :nth-child(6) { animation-delay: 0.34s; }
.features .feature:nth-child(1) { animation-delay: 0.3s; }
.features .feature:nth-child(2) { animation-delay: 0.36s; }
.features .feature:nth-child(3) { animation-delay: 0.42s; }
.features .feature:nth-child(4) { animation-delay: 0.48s; }
.features .feature:nth-child(5) { animation-delay: 0.54s; }
.features .feature:nth-child(6) { animation-delay: 0.6s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .features .feature {
    animation: none;
  }
}

/* Store-Badges — "Bald verfügbar" */
.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  text-align: left;
}

.store-button svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.store-button .small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

/* Coming-soon-Zustand: bewusst gedämpft, kein Link */
.store-button.soon {
  background: var(--panel);
  color: var(--muted);
  border: 1px dashed var(--rule-strong);
  cursor: default;
}

.coming-soon-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold-deep);
  margin: 6px 0 40px;
}

/* Feature-Karten */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 48px;
  counter-reset: feature;
}

.feature {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(26, 24, 22, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--gold-glow);
  box-shadow: 0 6px 24px rgba(196, 154, 60, 0.1);
  transform: translateY(-2px);
}

/* Goldene Ziffer als editoriales Ordnungselement */
.feature::before {
  counter-increment: feature;
  content: "0" counter(feature);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.feature h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Premium-Preisliste */
.pricing {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.pricing li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 20px;
}

.pricing li + li {
  border-top: 1px solid var(--rule);
}

.pricing .price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-deep);
  white-space: nowrap;
}

.pricing .trial {
  display: block;
  font-size: 13px;
  color: var(--dust);
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  main {
    padding: 28px 20px 64px;
  }
  header h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 23px;
  }
  .hero {
    padding-top: 16px;
  }
}

/* ---------- Dark Mode (AppDarkColors) ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1c1d1f;
    --panel: #1c1d1f;
    --warm: #18181a;
    --text: #edecea;
    --muted: #93918c;
    --dust: #5c5d62;
    --gold: #d4aa4c;
    --gold-deep: #d4aa4c;
    --gold-warm: #e0c070;
    --gold-soft: rgba(212, 170, 76, 0.12);
    --gold-glow: rgba(212, 170, 76, 0.24);
    --teal: #52ada0;
    --teal-deep: #64bfae;
    --teal-soft: rgba(82, 173, 160, 0.12);
    --rule: rgba(237, 236, 234, 0.09);
    --rule-strong: rgba(237, 236, 234, 0.16);
  }

  body {
    background-image:
      radial-gradient(1100px 480px at 85% -8%, rgba(212, 170, 76, 0.08), transparent 64%),
      radial-gradient(900px 420px at -12% 12%, rgba(82, 173, 160, 0.05), transparent 60%);
  }

  .hero h1 em {
    color: var(--gold-warm);
  }

  .store-button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule-strong);
  }

  .store-button.soon {
    background: transparent;
    color: var(--muted);
  }

  .feature:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }

  .placeholder {
    background: rgba(217, 100, 100, 0.18);
    color: #f0a8a8;
  }
}
