/* ============================================================
   Eversnap — Landing Page & Legal
   Brand: DesignSystem/styles/tokens.css v3 "Simple & Modern"
   clean off-white · near-black ink · one bronze accent
   LP expression: wedding-invitation editorial (mincho display)
   ============================================================ */

:root {
  --canvas:        #F7F6F3;
  --canvas-sunken: #EFEDE8;
  --surface:       #FFFFFF;
  --surface-alt:   #F2F1EC;
  --line:          #EAE8E2;

  --ink:        #1A1A1C;
  --ink-soft:   #6B6A6E;
  --ink-muted:  #A6A4A0;
  --on-accent:  #FFFFFF;

  --accent:       #A98A5E;
  --accent-deep:  #86683F;
  --accent-tint:  #F0E9DB;

  --cover:   #222225;
  --danger:  #B0564C;

  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-text: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-soft:   0 1px 2px rgba(32,28,26,.04);
  --shadow-lifted: 0 6px 24px rgba(32,28,26,.07);
  --shadow-deep:   0 24px 60px rgba(32,28,26,.16);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-quick: 160ms;
  --dur-base: 280ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.47 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent-tint); color: var(--accent-deep); }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.42;
}

/* ---------- reveal-on-scroll ---------- */

.fx {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--fx-delay, 0ms);
}
.fx.in { opacity: 1; transform: none; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(247, 246, 243, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--accent-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: .08em;
  transition: color var(--dur-quick);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--on-accent) !important;
  background: var(--ink);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-quick), transform var(--dur-quick);
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 172px 0 96px;
  overflow: hidden;
}

/* faint bronze wash upper-right */
.hero::before {
  content: "";
  position: absolute;
  top: -240px; right: -180px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,138,94,.13), transparent 65%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  position: relative;
}

/* vertical decorative text — wedding invitation motif */
.hero-tate {
  position: absolute;
  top: 8px;
  right: calc(100% + 4px);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .5em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.38;
  letter-spacing: .03em;
  margin: 26px 0 24px;
}
.hero-copy h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 10px;
  background: var(--accent-tint);
  z-index: -1;
}

.hero-lede {
  max-width: 44ch;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--radius-md);
  padding: 15px 28px;
  transition: transform var(--dur-quick) var(--ease-out),
              box-shadow var(--dur-quick) var(--ease-out),
              background var(--dur-quick);
}
.btn-primary {
  background: var(--ink);
  color: var(--on-accent);
  box-shadow: var(--shadow-lifted);
}
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-deep); }
.btn-primary svg { width: 17px; height: 17px; fill: currentColor; }

.btn-ghost {
  color: var(--ink);
  padding: 15px 6px;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.hero-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .06em;
}

/* ---------- phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone {
  position: relative;
  width: 292px;
  border-radius: 44px;
  background: var(--cover);
  padding: 12px;
  box-shadow: var(--shadow-deep), 0 2px 6px rgba(32,28,26,.2);
  transform: rotate(2.5deg);
}
.phone-screen {
  border-radius: 34px;
  background: var(--canvas);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 596px;
}

.ps-top {
  padding: 22px 18px 12px;
}
.ps-event {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ps-event h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ps-event span {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-muted);
}
.ps-countdown {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
}
.ps-countdown .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.ps-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 14px 3px 3px;
  align-content: start;
}
.ps-grid img {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-grid img.locked {
  filter: blur(7px) saturate(.25);
  opacity: .55;
}

.ps-bottom {
  padding: 14px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.ps-roll {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.ps-roll b {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  margin-right: 3px;
}
.ps-shutter {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.ps-shutter::after {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
}

/* floating film tiles around the phone */
.float-tile {
  position: absolute;
  border-radius: 6px;
  box-shadow: var(--shadow-lifted);
  border: 5px solid var(--surface);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.float-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-tile.t1 { width: 96px; height: 118px; top: 8%; left: 2%; transform: rotate(-8deg); animation-delay: -1s; }
.float-tile.t2 { width: 84px; height: 104px; bottom: 10%; right: 2%; transform: rotate(7deg); animation-delay: -3.5s; }
.float-tile figcaption {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 3px 0 1px;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ============================================================
   Sections — shared
   ============================================================ */

.section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.45;
  letter-spacing: .03em;
  margin: 20px 0 16px;
}
.section-head p { color: var(--ink-soft); }

.hairline-top { border-top: 1px solid var(--line); }

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}
.step {
  padding: 44px 32px 48px;
  position: relative;
}
.step + .step { border-left: 1px solid var(--line); }
.step-no {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: "lnum";
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 22px 0 12px;
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================================
   Reveal demo — 一斉公開
   ============================================================ */

.reveal-section {
  background: var(--cover);
  color: #EDEBE6;
}
.reveal-section .eyebrow { color: var(--accent); }
.reveal-section .eyebrow::before { background: var(--accent); }
.reveal-section .section-head h2 { color: #F5F3EE; }
.reveal-section .section-head p { color: #A6A4A0; }

.reveal-stage {
  position: relative;
}

.reveal-chip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #1C1710;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.reveal-grid figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.reveal-grid figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(0) brightness(.5);
  scale: 1.12;
  transition: filter 1.4s var(--ease-out), scale 1.4s var(--ease-out);
  transition-delay: var(--dev-delay, 0ms);
}
.reveal-stage.developed .reveal-grid figure > img {
  filter: none;
  scale: 1;
}
.reveal-grid figcaption {
  position: absolute;
  left: 10px; bottom: 8px;
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--dev-delay, 0ms) + 700ms);
}
.reveal-stage.developed .reveal-grid figcaption {
  opacity: 1;
  transform: none;
}

.reveal-caption {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--ink-muted);
}

/* ============================================================
   Features
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 36px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.feature p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  border-radius: var(--radius-xl);
  padding: 42px 38px;
  position: relative;
}
.price-free {
  background: var(--ink);
  color: var(--on-accent);
}
.price-free .price-tier { color: var(--accent); }
.price-paid {
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.price-big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 18px 0 6px;
  line-height: 1.2;
}
.price-big small {
  font-size: 16px;
  font-weight: 400;
}
.price-sub {
  font-size: 13px;
  opacity: .75;
  margin-bottom: 26px;
}
.price-list {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 13.5px;
}
.price-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.price-list li::before {
  content: "―";
  color: var(--accent);
  flex-shrink: 0;
}
.tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}
.tier-chips span {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: .04em;
}
.pricing-note {
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color var(--dur-quick);
}
.faq summary:hover { color: var(--accent-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a {
  padding: 0 4px 28px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta-final {
  text-align: center;
  padding: 130px 0 140px;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: .04em;
  line-height: 1.5;
  margin: 22px 0 18px;
}
.cta-final p {
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.cta-final .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--canvas-sunken);
  padding: 56px 0 42px;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .brand { font-size: 22px; }
.footer-brand p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color var(--dur-quick);
}
.footer-links a:hover { color: var(--accent-deep); }
.footer-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: .08em;
}

/* ============================================================
   Legal pages (terms / privacy)
   ============================================================ */

.legal-main {
  padding: 150px 0 110px;
}
.legal-article {
  max-width: 720px;
  margin-inline: auto;
}
.legal-article > .eyebrow { margin-bottom: 18px; }
.legal-article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: .04em;
  line-height: 1.4;
  margin-bottom: 12px;
}
.legal-date {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: .08em;
  margin-bottom: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal-article .lead {
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 52px 0 14px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.legal-article p { margin-bottom: 14px; }
.legal-article ol {
  padding-left: 24px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}
.legal-article ul {
  list-style: none;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}
.legal-article ul li {
  padding-left: 18px;
  position: relative;
}
.legal-article ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-article a {
  color: var(--accent-deep);
  text-decoration-color: rgba(169,138,94,.5);
  text-underline-offset: 3px;
  word-break: break-all;
}
.legal-close {
  margin-top: 56px;
  text-align: right;
  font-family: var(--font-display);
  letter-spacing: .2em;
  color: var(--ink-soft);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .hero { padding-top: 140px; }
  .hero-tate { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .reveal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .eyebrow::before { width: 20px; gap: 10px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .float-tile.t1 { left: -4%; }
  .float-tile.t2 { right: -4%; }
  .phone { width: 268px; }
  .phone-screen { height: 548px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; transition: none; }
  .float-tile { animation: none; }
  .ps-countdown .dot { animation: none; }
  .reveal-grid figure > img { transition: none; filter: none; scale: 1; }
  .reveal-grid figcaption { transition: none; opacity: 1; transform: none; }
}
