/* Dayswish website. Flat, like the app (design direction B): grey canvas, white groups,
   one teal accent, pastel widget colours as the only decoration. Tokens only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body-lg);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-ink); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--color-surface); border-bottom: var(--border-hairline) solid var(--color-separator); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: var(--font-weight-bold); font-size: var(--font-size-lg); color: var(--color-text); text-decoration: none; }
.brand img { border-radius: var(--radius-md); }
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: var(--tap-target); padding: 0 var(--space-4); background: var(--color-surface-sunken); border-radius: var(--radius-pill); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; inset-inline-end: 0; z-index: 6; margin: var(--space-2) 0 0; padding: var(--space-2); list-style: none; min-width: 180px; background: var(--color-surface); border: var(--border-hairline) solid var(--color-border); border-radius: var(--radius-lg); }
.lang-menu a { display: flex; align-items: center; min-height: var(--tap-target); padding: 0 var(--space-3); color: var(--color-text); text-decoration: none; border-radius: var(--radius-md); }
.lang-menu a:hover { background: var(--color-bg); }
.lang-menu a[aria-current] { background: var(--color-primary-soft); color: var(--color-accent-ink); font-weight: var(--font-weight-semibold); }

/* Buttons */
.store-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 var(--space-8); border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-on-primary); font-weight: var(--font-weight-semibold); font-size: var(--font-size-md); text-decoration: none; transition: transform .2s var(--ease-soft); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: var(--border-focus) solid var(--color-accent); outline-offset: var(--border-focus); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); }

/* Hero: deep teal, soft pastel glows, the home screen in a phone frame */
.hero { position: relative; overflow: hidden; color: var(--color-on-primary); background:
  radial-gradient(60rem 40rem at 85% 10%, color-mix(in srgb, var(--color-illu-4) 30%, transparent), transparent 60%),
  radial-gradient(40rem 30rem at 0% 100%, color-mix(in srgb, var(--color-illu-1) 22%, transparent), transparent 60%),
  var(--color-primary); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero .glow-a { width: 22rem; height: 22rem; background: var(--color-illu-3); top: -6rem; inset-inline-start: 30%; opacity: .25; }
.hero .glow-b { width: 18rem; height: 18rem; background: var(--color-illu-2); bottom: -4rem; inset-inline-end: 8%; opacity: .35; }
.hero .glow-c { width: 14rem; height: 14rem; background: var(--color-illu-4); top: 30%; inset-inline-start: -6rem; opacity: .3; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--space-12); padding-top: var(--space-12); padding-bottom: 7rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 var(--space-5);
  background: linear-gradient(100deg, var(--color-on-primary) 30%, var(--color-illu-2) 70%, var(--color-illu-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; color: color-mix(in srgb, var(--color-on-primary) 82%, transparent); margin: 0 0 var(--space-8); max-width: 34rem; }
.hero .btn { background: var(--color-surface); color: var(--color-accent-ink); padding: 0 var(--space-8); min-height: 3.5rem; font-size: var(--font-size-body-lg);
  box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--color-text) 35%, transparent); }
.hero-art { position: relative; justify-self: center; width: min(19rem, 78%); }
.hero-phone { position: relative; z-index: 2; padding: 0.55rem; border-radius: 2.6rem; background: var(--color-text);
  transform: rotate(-4deg); animation: float 7s ease-in-out infinite;
  box-shadow: 0 2.5rem 5rem color-mix(in srgb, var(--color-text) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--color-on-primary) 18%, transparent); }
.hero-phone::before { content: ""; position: absolute; z-index: 1; top: 1.1rem; left: 50%; width: 0.7rem; height: 0.7rem; margin-left: -0.35rem; border-radius: 50%; background: var(--color-text); }
/* The store screenshot is cropped to the screen: x 14.2..85.7 %, y from 26 % (below any caption) */
.hero-phone > img { display: block; max-width: none; width: 139.9%; margin: -64.7% 0 0 -19.86%; clip-path: inset(26% 14.3% 0 14.3% round 2.1rem); }
.hero-phone { overflow: hidden; }
.bubble { position: absolute; z-index: 3; border-radius: 50%; animation: float 6s ease-in-out infinite; }
.bubble-a { width: 4.5rem; height: 4.5rem; background: var(--color-illu-2); top: 8%; inset-inline-start: -2.5rem; }
.bubble-b { width: 2.75rem; height: 2.75rem; background: var(--color-illu-3); top: 46%; inset-inline-end: -1.75rem; animation-delay: -2s; }
.bubble-c { width: 3.5rem; height: 3.5rem; background: var(--color-illu-1); bottom: 6%; inset-inline-start: -1.5rem; animation-delay: -4s; }
.bubble-d { width: 1.5rem; height: 1.5rem; background: var(--color-illu-4); top: -0.75rem; inset-inline-end: 22%; animation-delay: -1s; }
.hero-wave { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 4rem; fill: var(--color-bg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.75rem; } }

/* Features: numbered pastel cards, the screen rising from the bottom edge */
.features { counter-reset: feature; display: grid; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-12); }
.feature { counter-increment: feature; position: relative; display: grid; overflow: hidden; border-radius: 1.75rem; background: var(--panel, var(--color-illu-4)); transition: transform .35s var(--ease-soft); }
.feature:hover { transform: translateY(-4px); }
.feature:nth-child(4n+2) { --panel: var(--color-illu-2); }
.feature:nth-child(4n+3) { --panel: var(--color-illu-1); }
.feature:nth-child(4n+4) { --panel: var(--color-illu-3); }
.feature-text { padding: var(--space-8) var(--space-8) 0; }
.feature-text::before { content: counter(feature, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 2rem; padding: 0 var(--space-3); margin-bottom: var(--space-4); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); letter-spacing: .04em; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 var(--space-3); color: var(--color-text); }
.feature p { margin: 0; color: var(--color-text); opacity: .78; }
/* Crop each store screenshot to its phone screen (x 14.5..85.5 %, from 30 % down), scaled back to
   the image box, so the pastel panel shows around a clean screen; the card clips the overflow. */
.feature > img { width: 70%; margin: var(--space-8) auto 0; aspect-ratio: 1; object-fit: cover; object-position: 50% 68.5%;
  clip-path: inset(0 14.5% 0 14.5% round 1.1rem 1.1rem 0 0); transform: scale(1.408); transform-origin: 50% 0; }
/* FAQ */
.faq { padding-top: var(--space-4); padding-bottom: var(--space-12); }
.faq dl { display: grid; gap: var(--space-3); margin: 0; }
.faq dt { font-weight: var(--font-weight-semibold); background: var(--color-surface); border-radius: var(--radius-group) var(--radius-group) 0 0; padding: var(--space-5) var(--space-6) var(--space-1); }
.faq dd { margin: calc(-1 * var(--space-3)) 0 0; background: var(--color-surface); border-radius: 0 0 var(--radius-group) var(--radius-group); padding: var(--space-1) var(--space-6) var(--space-5); color: var(--color-text-muted); }

/* Video */
.video { padding-top: var(--space-4); padding-bottom: var(--space-12); }
.video h2 { font-size: var(--font-size-xl); margin: 0 0 var(--space-4); }
.video video, .video img { border-radius: var(--radius-group); width: 100%; }

/* Closing CTA */
.cta { background: var(--color-primary); color: var(--color-on-primary); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-5); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.cta-icon { border-radius: var(--radius-group); border: var(--border-thick) solid var(--overlay-light-soft); }
.cta-note { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; font-weight: var(--font-weight-bold); margin: 0; max-width: 40rem; }
.cta .store-links { justify-content: center; }
.cta .btn { background: var(--color-surface); color: var(--color-accent-ink); }

/* Policy pages */
.prose { max-width: 760px; padding-top: var(--space-12); padding-bottom: var(--space-12); }
.prose h1 { font-size: var(--font-size-title); line-height: 1.2; }
.prose h2 { font-size: var(--font-size-lg); margin-top: var(--space-8); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); background: var(--color-surface); border-radius: var(--radius-lg); }
.prose th, .prose td { text-align: start; padding: var(--space-3); border-bottom: var(--border-hairline) solid var(--color-separator); vertical-align: top; }
.notice { padding: var(--space-4) var(--space-5); background: var(--color-primary-soft); border-radius: var(--radius-lg); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--color-surface); border-top: var(--border-hairline) solid var(--color-separator); padding: var(--space-8) 0; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap-target); color: var(--color-text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-text); }

@media (min-width: 840px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-12); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:first-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .feature:first-child .feature-text { align-self: center; padding-bottom: var(--space-8); }
  .feature:first-child > img { width: 62%; }
  .faq dl { max-width: 52rem; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .feature { transition: none; } .hero-phone, .bubble { animation: none; } }

/* CJK line breaks: keep Korean words whole, break Japanese at phrase boundaries */
h1, h2, .lead, .cta-note { text-wrap: balance; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) .lead, :lang(ko) .cta-note { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) .lead, :lang(ja) .cta-note { word-break: auto-phrase; }

/* Closing band: same glows as the hero */
.cta { position: relative; overflow: hidden; background: radial-gradient(50rem 30rem at 50% 120%, color-mix(in srgb, var(--color-illu-2) 30%, transparent), transparent 70%), var(--color-primary); }
.cta .glow-a { width: 16rem; height: 16rem; background: var(--color-illu-3); top: -5rem; inset-inline-start: 10%; opacity: .25; }
.cta .glow-b { width: 14rem; height: 14rem; background: var(--color-illu-4); bottom: -5rem; inset-inline-end: 12%; opacity: .3; }
.cta-inner { position: relative; z-index: 1; }
.cta-icon { box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--color-text) 40%, transparent); }
.cta .btn { min-height: 3.5rem; box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--color-text) 35%, transparent); }
.faq dt { font-size: var(--font-size-lg); }
