/* style.css */
:root {
  --bg: lightpink;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.12);
  --accent: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 30% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
              radial-gradient(900px 600px at 70% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.bg-glow{
  position: fixed;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 45%),
              radial-gradient(circle at 70% 40%, rgba(255,255,255,0.04), transparent 50%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 70px 0 40px;
  position: relative;
}

.hero-inner {
  width: min(880px, calc(100% - 40px));
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(22px, 3.8vw, 44px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 10px;
}

.sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.btn:active { transform: translateY(0px); }

.btn.primary { background: rgba(255,255,255,0.12); }
.btn.primary:hover { background: rgba(255,255,255,0.16); }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }

.secret {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.secret-title { margin: 0 0 6px; font-weight: 700; }
.secret-text { margin: 0; color: var(--muted); }

.scroll-hint{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-hint .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  animation: bounce 1.4s infinite;
}
@keyframes bounce{
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}

.section {
  padding: clamp(54px, 7vw, 92px) 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}
.two-col.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.copy .lead {
  font-size: 18px;
  margin-top: 6px;
}

.muted {
  color: var(--muted);
  margin: 12px 0 0;
}

.highlight {
  text-decoration-thickness: 2px;
}

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.photo img {
  display: block;
  width: 100%;
  height: min(420px, 60vh);
  object-fit: cover;
}

.photo figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  min-height: 130px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}

.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }
.card:active { transform: translateY(0px); }

.card-front, .card-back { transition: opacity 0.2s ease, transform 0.2s ease; }
.card-title { margin: 0; font-weight: 750; font-size: 16px; }
.card-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.card-back {
  opacity: 0;
  transform: translateY(6px);
  color: var(--text);
  margin-top: 6px;
}
.card-back p { margin: 0; color: rgba(255,255,255,0.86); }

.card.is-open .card-front { opacity: 0; transform: translateY(-6px); }
.card.is-open .card-back { opacity: 1; transform: translateY(0); }

.pillbox{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.pill:active { transform: translateY(0); }

.reveal-box{
  margin-top: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.reveal-title { margin: 0 0 6px; font-weight: 700; }
.reveal-text { margin: 0; color: var(--muted); }

.letter {
  text-align: center;
}
.letter-card{
  text-align: left;
  margin: 18px auto 20px;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.letter-card p { margin: 10px 0; }
.sign { margin-top: 16px; font-weight: 700; }

.footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px){
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .photo img { height: 360px; }
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hero {
  padding-top: calc(70px + env(safe-area-inset-top));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

button, input, textarea {
  font-size: 16px; /* prevents iOS auto-zoom on tap */
}

img {
  max-width: 100%;
  height: auto;
}

.btn, .pill, .card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 860px){
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .photo img { height: 300px; } /* was 360px */
}

.card {
  min-height: 150px;
}