/* Colors follow src/ui/theme.ts so the site reads as part of the app. */
:root {
  --bg: #fff9ec;
  --bg-glow: #f3f7e8;
  --paper: #fffdf7;
  --outline: #f1dfbd;
  --ink: #4a3826;
  --ink-soft: #8a7458;
  --leaf: #62c454;
  --leaf-dark: #3b9032;
  --leaf-wash: #e9f5df;
  --rose: #ff86a8;
  --rose-dark: #d6567d;
  --rose-wash: #ffe8ee;
  --gold-wash: #fff3d1;
  --title-stroke: #5b2c3a;
  --shadow: 0 6px 14px rgba(110, 78, 32, 0.12);
  --shadow-lifted: 0 10px 24px rgba(110, 78, 32, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221c15;
    --bg-glow: #26291c;
    --paper: #2e261d;
    --outline: #4a3c2b;
    --ink: #f4ead8;
    --ink-soft: #c2ae90;
    --leaf: #7fd16f;
    --leaf-dark: #9ad98c;
    --leaf-wash: #2c3a24;
    --rose: #ff9db8;
    --rose-dark: #ff9db8;
    --rose-wash: #43262f;
    --gold-wash: #3d3220;
    --title-stroke: #3a1a25;
    --shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    --shadow-lifted: 0 10px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 85% 0%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.vine {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 44vw);
  pointer-events: none;
  user-select: none;
}

main {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px 48px;
}

/* ---------- Header ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow-lifted);
}

.eyebrow {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--rose);
  -webkit-text-stroke: 5px var(--title-stroke);
  paint-order: stroke fill;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.35;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
}

h2 .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--leaf-wash);
  color: var(--leaf-dark);
  font-size: 0.85rem;
}

p, li { margin: 0 0 10px; }
p:last-child, li:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 1.2em; }
li::marker { color: var(--leaf); }
strong { font-weight: 800; }

a { color: var(--rose-dark); font-weight: 700; text-underline-offset: 3px; }

.lead { margin: 0 0 28px; color: var(--ink-soft); }

/* ---------- Cards ---------- */

.card {
  margin: 0 0 16px;
  padding: 22px 20px;
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 40px 0 14px;
  padding-left: 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.muted { color: var(--ink-soft); font-size: 0.9rem; }

/* Room strip on the support page */
.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.rooms li { margin: 0; }

.rooms figure { margin: 0; }

.rooms img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--outline);
  background: var(--outline);
}

.rooms figcaption {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

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

/* Contact */
.contact { background: var(--rose-wash); border-color: transparent; }

.mail-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 6px 0 14px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--rose-dark);
  word-break: break-all;
  transition: transform 0.15s, box-shadow 0.15s;
}

.mail-button:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--rose-dark); }
.mail-button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--rose-dark); }

@media (prefers-color-scheme: dark) {
  .mail-button { color: #3a1a25; }
}

/* FAQ: answers open only when asked */
.faq details {
  margin: 0 0 10px;
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 3px solid var(--leaf);
  border-bottom: 3px solid var(--leaf);
  border-radius: 2px;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }

.faq summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 16px; }

.faq .answer { padding: 0 18px 18px; color: var(--ink); }

/* Privacy summary */
.summary { background: var(--leaf-wash); border-color: transparent; }

.summary ul { list-style: none; padding: 0; }

.summary li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
}

.summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Label / value rows used in the privacy policy */
.rows { margin: 0 0 12px; }
.rows:last-child { margin-bottom: 0; }

.rows div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 2px dashed var(--outline);
}

.rows div:first-child { padding-top: 0; }
.rows div:last-child { border-bottom: 0; padding-bottom: 0; }

.rows dt { font-weight: 800; color: var(--leaf-dark); }
.rows dd { margin: 0; }

@media (max-width: 520px) {
  .rows div { grid-template-columns: 1fr; }
}

.note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--gold-wash);
  font-size: 0.95rem;
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px dashed var(--outline);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer nav { display: flex; gap: 16px; }

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