/* Duoday website. Palette: SPEC §9. Dark by default, light via prefers-color-scheme.
   Gradient Coral->Rose is used ONLY on .btn--main and .pill-plus; text on it is always Midnight. */

/* ---------- fonts (self-hosted Inter, OFL; Latin + Cyrillic subsets) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+00B7, U+2665; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0301; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+00B7, U+2665; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0301; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-700-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+00B7, U+2665; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-700-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0301; }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/inter-800-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+00B7, U+2665; }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/inter-800-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0301; }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark light;
  --bg: #1B0A2E;          /* Midnight */
  --bg-alt: #220F38;      /* slightly lifted band between Midnight and Plum 800 */
  --card: #2A1244;        /* Plum 800 */
  --pill: #3A1458;        /* Plum 700 */
  --text: #FFF4E6;        /* Cream */
  --text2: #B8A3CC;       /* Lilac */
  --accent: #FFD2A8;      /* Peach */
  --heart: #FF8A5B;       /* Coral (flat) */
  --ring: #5B2A85;        /* Plum 500 */
  --line: #3A1458;
  --ok: #1FA971;
  --err: #FFB4A8;
  --link: #FFD2A8;
  --store-bg: #FFD2A8;
  --store-fg: #1B0A2E;
  --on-grad: #1B0A2E;
  --grad: linear-gradient(135deg, #FF8A5B 0%, #FF3D7F 100%);
  --focus: #FFD2A8;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --gutter: 16px;
  --radius: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFF4E6;        /* Cream */
    --bg-alt: #FBE9D4;
    --card: #FFFFFF;
    --pill: #F6E1CA;
    --text: #2A1240;      /* Ink */
    --text2: #6A4D84;
    --accent: #B8165F;    /* Berry */
    --heart: #B8165F;
    --ring: #D8C3E6;
    --line: #E8D2BA;
    --err: #A3201B;
    --link: #B8165F;
    --store-bg: #B8165F;
    --store-fg: #FFF4E6;
    --focus: #B8165F;
    --shadow: 0 18px 40px rgba(42, 18, 64, .14);
  }
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); overflow-wrap: break-word; hyphens: auto; -webkit-font-smoothing: antialiased; }
:lang(ja) { font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif; hyphens: none; line-height: 1.8; }
:lang(ko) { font-family: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; hyphens: none; word-break: keep-all; line-height: 1.75; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 9vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; }
h3, .h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--text2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.wrap--narrow { max-width: 780px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand__logo { flex: none; }
.site-nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 10px; }
.site-nav a:hover { color: var(--accent); }
@media (min-width: 860px) { .site-nav { order: 0; width: auto; margin-left: auto; } .site-header__in { flex-wrap: nowrap; } }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ring); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--text); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: var(--pill); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 240px; max-width: calc(100vw - 2 * var(--gutter)); margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--ring); border-radius: 18px; box-shadow: var(--shadow); max-height: 72vh; overflow: auto; }
.lang__list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang__list a:hover, .lang__list a[aria-current] { background: var(--pill); }
.lang__list a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex-direction: column; min-height: 52px; min-width: 150px; padding: 8px 22px; border-radius: 999px; border: 0; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn__k { font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.btn__n { font-size: 1.1rem; font-weight: 800; line-height: 1.15; }
.btn--main { background: var(--grad); color: var(--on-grad); flex-direction: row; min-height: 52px; padding-inline: 28px; box-shadow: 0 8px 26px rgba(255, 61, 127, .28); }
.btn--main:hover { filter: brightness(1.05); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; min-width: 0; box-shadow: none; }
.btn--store { background: var(--store-bg); color: var(--store-fg); }
.btn--store:hover { filter: brightness(1.06); }
.btn--store.is-soon { background: var(--pill); color: var(--text); border: 1px dashed var(--ring); cursor: default; }
.btn--store.is-soon:hover { filter: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.center .stores, .join__card .stores { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding-block: 32px 56px; overflow-x: clip; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.lead { font-size: clamp(1.05rem, 3.4vw, 1.3rem); color: var(--text2); max-width: 36em; }
.hero__note { color: var(--text2); font-size: .9rem; margin: 8px 0 0; }
@media (min-width: 900px) { .hero { padding-block: 64px 96px; } .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.phone { margin: 0 auto; width: min(100%, 360px); container-type: inline-size; background: var(--card); border: 1px solid var(--ring); border-radius: 40px; padding: 22px 16px 18px; box-shadow: var(--shadow); }
.phone__screen { display: grid; gap: 14px; }
.us-names { margin: 0; text-align: center; font-weight: 700; font-size: 1rem; }
.ring { position: relative; width: min(100%, 250px); margin: 0 auto; aspect-ratio: 1; }
.ring__svg { width: 100%; height: 100%; display: block; }
.ring__track, .w-circle .ring__track { stroke: var(--ring); }
.ring__bar { stroke: var(--accent); }
.ring__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring__num { font-weight: 800; font-size: clamp(2.2rem, 20cqw, 4.2rem); line-height: 1; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ring__label { margin-top: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--text2); }
.us-breakdown { margin: 0; text-align: center; font-size: .82rem; color: var(--text2); font-variant-numeric: tabular-nums; }
.us-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { display: flex; flex-direction: column; gap: 2px; background: var(--pill); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.mini__l { font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--text2); text-transform: uppercase; }
.mini__v { font-size: 1.05rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.mini__s { font-size: .75rem; color: var(--text2); }
.us-q { display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: var(--pill); border-radius: 16px; padding: 12px; }
.us-q .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero .ring__bar { animation: draw 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes draw { from { stroke-dasharray: 0 553; } }
}

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 40em; margin-bottom: 28px; }
.note { color: var(--text2); margin-top: 20px; max-width: 52em; }
.note.small { font-size: .8rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 900px) { .section { padding-block: 88px; } }

.cards3 { display: grid; gap: 16px; }
.cards4 { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards3 { grid-template-columns: repeat(3, 1fr); } .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.widget-card h3 { margin-top: 18px; }
.widget-card p { color: var(--text2); margin: 0; }
.demo { display: flex; align-items: center; justify-content: center; min-height: 190px; background: var(--pill); border-radius: 18px; padding: 16px; }
.w-small { width: 136px; aspect-ratio: 1; background: var(--card); border: 1px solid var(--ring); border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.w-small__n { font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.w-small__t { font-size: .85rem; font-weight: 600; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; }
.heart-ic { fill: var(--heart); }
.w-circle { position: relative; width: 104px; height: 104px; background: var(--card); border-radius: 50%; border: 1px solid var(--ring); }
.w-circle__svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.w-circle .ring__bar { stroke: var(--accent); }
.w-circle__n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.w-rect { display: flex; align-items: center; gap: 10px; max-width: 100%; background: var(--card); border: 1px solid var(--ring); border-radius: 22px; padding: 14px 18px; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.w-rect .heart-ic { flex: none; }

.split { display: grid; gap: 36px; align-items: center; }
.split > *, .hero__grid > *, .support > *, .plans2 > *, .site-footer__grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ticks { display: grid; gap: 12px; margin-top: 18px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks svg { flex: none; margin-top: 2px; color: var(--ok); }
.ticks span { min-width: 0; }
.qcard { margin: 0; background: var(--card); border: 1px solid var(--ring); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.qcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.tag { display: inline-block; background: var(--pill); color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; }
.qcard__day { font-size: .85rem; color: var(--text2); font-weight: 600; }
.qcard__q { font-size: clamp(1.15rem, 4vw, 1.45rem); font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.ans { background: var(--pill); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.ans p { margin: 4px 0 0; }
.ans__who { font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.ans--locked .ans__blur { filter: blur(5px); color: var(--text2); user-select: none; letter-spacing: .1em; overflow: hidden; white-space: nowrap; }
.ans__lock { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text2); margin-top: 8px !important; }
.ans__lock svg { flex: none; color: var(--text2); }

.trust h3 { margin: 14px 0 6px; }
.trust p { margin: 0; color: var(--text2); font-size: .95rem; }
.ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--pill); border-radius: 14px; color: var(--accent); }
.link { font-weight: 700; }

.plans2 { display: grid; gap: 16px; }
@media (min-width: 800px) { .plans2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.plan-card__price { color: var(--text2); margin-bottom: 8px; }
.plan-card--plus { border-color: var(--accent); }
.pill-plus { display: inline-block; background: var(--grad); color: var(--on-grad); font-size: .75rem; font-weight: 800; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; }
ul.prices { margin-top: 22px; display: grid; gap: 8px; }
.price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; background: var(--pill); border-radius: 16px; padding: 12px 16px; }
.price-row__name { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-row__val strong { font-size: 1.15rem; color: var(--accent); }
.price-row__from, .price-row__per { font-size: .85rem; color: var(--text2); }
.badge { background: var(--ok); color: #0B2A1E; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.promise { color: var(--accent); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: var(--accent); width: 28px; text-align: center; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text2); padding-bottom: 14px; margin: 0; }
.section--cta { text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.site-footer__grid { display: grid; gap: 28px; margin-bottom: 24px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-h { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; }
.footer-link:hover, .footer-link[aria-current] { color: var(--accent); }
.langs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.footer-legal { margin-bottom: 6px; }

/* ---------- legal ---------- */
.legal { padding-block: 40px 64px; }
.legal h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.legal__intro { color: var(--text2); font-size: 1.05rem; margin-bottom: 28px; }
.legal__sec { margin-bottom: 26px; }
.legal__sec h2 { font-size: clamp(1.15rem, 4vw, 1.4rem); margin-bottom: .45em; }
.legal__n { color: var(--accent); }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal__links { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text2); }

/* ---------- support form ---------- */
.support { display: grid; gap: 32px; padding-block: 40px 72px; }
@media (min-width: 900px) { .support { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ring); background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font); }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--pill); font-weight: 600; }
.form__status--ok { border: 1px solid var(--ok); }
.form__status--err { border: 1px solid var(--err); color: var(--err); }

/* ---------- invite + 404 ---------- */
.join { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-block: 32px; }
.join__card { width: min(100%, 520px); text-align: center; padding: 28px 22px; }
.join__card h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); margin-top: 12px; }
.join__card .lead { margin-inline: auto; }
.join__stores { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.join__secret { margin-top: 22px; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-block: 48px; }
.notfound__logo { margin-bottom: 8px; }

@media print { .site-header, .site-footer, .skip { display: none; } body { background: #fff; color: #000; } }

/* CJK line breaking: break at phrase boundaries (Chrome/Safari) and keep Korean words together. */
:lang(ja) { word-break: auto-phrase; line-break: strict; hyphens: manual; overflow-wrap: anywhere; }
:lang(ko) { word-break: keep-all; hyphens: manual; overflow-wrap: anywhere; }
