/* Neatling 소개 사이트 — 정적 파일 세 장뿐이다. 빌드 도구를 두지 않는다. */

:root {
    --ink: #1c1c1e;
    --ink-soft: #5b5b60;
    --ink-faint: #8e8e93;
    --line: #e5e5ea;
    --bg: #ffffff;
    --bg-soft: #f7f7f9;
    --accent: #2f6bd8;
    --warn: #c2610a;
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f2f2f7;
        --ink-soft: #b4b4bb;
        --ink-faint: #86868b;
        --line: #2c2c2e;
        --bg: #131315;
        --bg-soft: #1c1c1f;
        --accent: #6f9bf0;
        --warn: #e0913f;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Pretendard", "Segoe UI", sans-serif;
    word-break: keep-all;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.top {
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 10;
}
header.top .wrap {
    display: flex; align-items: center; gap: 18px;
    height: 56px;
}
header.top a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
header.top a:hover { color: var(--ink); }
header.top .brand {
    font-weight: 700; color: var(--ink); font-size: 17px;
    letter-spacing: -0.01em; margin-right: auto;
}

h1 {
    font-size: 38px; line-height: 1.25; letter-spacing: -0.02em;
    margin: 56px 0 14px;
}
h2 {
    font-size: 22px; letter-spacing: -0.01em;
    margin: 48px 0 12px; padding-top: 8px;
}
h3 { font-size: 17px; margin: 28px 0 6px; }
/* 머리띠가 고정이라, 앵커로 뛰면 제목이 그 밑에 깔린다 */
h2[id] { scroll-margin-top: 76px; }
p { margin: 0 0 14px; color: var(--ink-soft); }
p.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 28px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); }

ul { padding-left: 20px; color: var(--ink-soft); }
li { margin: 6px 0; }

.card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 22px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

pre {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--ink-soft);
}

table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-soft); }

.price {
    display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0;
}
.price > div {
    flex: 1 1 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.price .amount { font-size: 26px; font-weight: 700; color: var(--ink); }
.price .note { font-size: 13px; color: var(--ink-faint); }

.faq { border-top: 1px solid var(--line); padding: 18px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 6px; }
.faq p:last-child { margin-bottom: 0; }

/* footer 는 .wrap 도 겸한다. 선택자를 footer 하나로 두면 .wrap 의
   margin:0 auto / padding:0 24px 이 우선순위로 이겨서 여백이 통째로 죽는다. */
footer.wrap {
    margin: 72px auto 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px; color: var(--ink-faint);
}
footer a { color: var(--ink-faint); }
footer .row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* 사업자등록번호처럼 중간에 끊기면 안 되는 것 */
.nb { white-space: nowrap; }

.en { color: var(--ink-faint); font-size: 14px; }
.en strong { color: var(--ink-soft); }

/* ── 브랜드 홈에서만 쓰는 것 ───────────────────────── */

/* 지키는 네 가지 */
ol.vows { padding-left: 20px; color: var(--ink-soft); margin: 14px 0 0; }
ol.vows li { margin: 10px 0; }

/* 「만든 것들」 카드 */
.apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 14px;
    margin: 22px 0;
}
.app {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.app h3 {
    margin: 0 0 8px;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px;
}
.app p { margin: 0; font-size: 15px; }
.app .links {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 12px; font-size: 14px;
}

/* 상태 알약 */
.badge {
    font-size: 12px; font-weight: 600; line-height: 1.7;
    color: var(--ink-faint);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 10px;
    white-space: nowrap;
}
.badge.out {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

/* ══════════════════════════════════════════════════════════════
   브랜드 홈 (body.home) 전용 — 여기 아래 것은 다른 페이지에 안 닿는다.
   색은 앱 아이콘에서 뽑았다: 틸 바탕 + 앰버 폴더.
   ══════════════════════════════════════════════════════════════ */

body.home {
    --ink-0: #0a1014;      /* 가장 어두운 바탕 */
    --ink-1: #0f1a20;
    --ink-2: #16242c;
    --edge:  #23373f;
    --fg:    #eef5f7;
    --fg-2:  #a3b8c0;
    --fg-3:  #6d848d;
    --teal:  #4fb3c4;
    --amber: #f2a03d;
    --hero-h: clamp(2.9rem, 7.2vw, 5.4rem);

    /* 바탕 규칙(h1·p·.card·table·.faq…)이 쓰는 변수를 어두운 값으로 갈아끼운다.
       이러면 페이지마다 컴포넌트를 새로 짜지 않아도 같은 옷을 입는다. */
    --ink: #eef5f7;
    --ink-soft: #a3b8c0;
    --ink-faint: #6d848d;
    --line: #23373f;
    --bg: #0a1014;
    --bg-soft: #16242c;
    --accent: #4fb3c4;

    background: var(--ink-0);
    color: var(--fg);
    font-size: 17px;
}

/* 글이 주인공인 페이지(지원·개인정보) — 홈과 같은 색, 읽기 좋은 폭 */
.home .prose { max-width: 760px; margin: 0 auto; padding: 0 28px clamp(40px,7vw,72px); }
.home .prose h1 { font-size: clamp(2rem,4.4vw,2.9rem); letter-spacing:-.035em; margin: clamp(48px,7vw,76px) 0 14px; }
.home .prose h2 { font-size: clamp(1.25rem,2.3vw,1.55rem); margin: 44px 0 10px; }
.home .prose h3 { font-size: 16.5px; }
.home .prose .card { background: var(--ink-2); border-color: var(--edge); }
.home .prose pre { background: var(--ink-1); border-color: var(--edge); }
.home .prose th { color: var(--fg); }
.home .prose .faq { border-color: var(--edge); }
body.home ::selection { background: color-mix(in srgb, var(--teal) 40%, transparent); }

/* ── 뼈대 ─────────────────────────────────────────── */
.home .shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.home section { position: relative; }
.home .band { padding: clamp(72px, 11vw, 132px) 0; }
.home .band + .band { border-top: 1px solid var(--edge); }

.home h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.16; letter-spacing: -0.03em; font-weight: 800;
    margin: 0 0 14px; color: var(--fg);
}
.home h3 { color: var(--fg); }
.home p { color: var(--fg-2); }
.home strong { color: var(--fg); font-weight: 650; }
.home .eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.home .eyebrow::before {
    content: ""; width: 26px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
}
.home .sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 58ch; }

/* ── 머리띠 ───────────────────────────────────────── */
.home header.top {
    background: color-mix(in srgb, var(--ink-0) 72%, transparent);
    border-bottom: 1px solid var(--edge);
}
.home header.top .wrap { max-width: 1120px; padding: 0 28px; height: 64px; }
.home header.top a { color: var(--fg-2); font-size: 14.5px; }
.home header.top a:hover { color: var(--fg); }
.home header.top .brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--fg); font-size: 17px; font-weight: 700;
}
.home header.top .brand img { width: 34px; height: 34px; border-radius: 9px; }

/* ── 첫 화면 ──────────────────────────────────────── */
.home .hero { padding: clamp(64px, 9vw, 108px) 0 clamp(52px, 7vw, 84px); overflow: hidden; }
.home .aurora {
    position: absolute; inset: -30% -10% auto -10%; height: 150%;
    pointer-events: none; z-index: 0; opacity: .55;
    background:
      radial-gradient(46rem 30rem at 18% 8%,  color-mix(in srgb, var(--teal) 42%, transparent), transparent 62%),
      radial-gradient(38rem 26rem at 88% 22%, color-mix(in srgb, var(--amber) 26%, transparent), transparent 60%),
      radial-gradient(34rem 24rem at 60% 78%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 60%);
    animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
    from { transform: translate3d(-2%, 0, 0) }
    to   { transform: translate3d(3%, -3%, 0) }
}
.home .hero .shell { position: relative; z-index: 1; }
.home .hero h1 {
    font-size: var(--hero-h); line-height: 1.04; letter-spacing: -0.045em;
    font-weight: 850; margin: 0 0 20px; max-width: 16ch;
}
.home .hero h1 .grad {
    /* 틸→앰버로 바로 잇지 않는다. 중간에서 회녹색으로 탁해진다.
       따뜻한 쪽끼리만 이어 채도를 지킨다. */
    background: linear-gradient(92deg, #ffc871, #f2a03d 58%, #e2761f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home .hero .lead { font-size: clamp(1.06rem, 1.9vw, 1.32rem); color: var(--fg-2); max-width: 46ch; margin: 0 0 30px; }

/* ── 단추 ─────────────────────────────────────────── */
.home .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home .btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 12px; font-size: 15px; font-weight: 650;
    text-decoration: none; border: 1px solid transparent;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.home .btn:hover { transform: translateY(-2px); }
.home .btn-1 { background: var(--amber); color: #221501; }
.home .btn-1:hover { background: #ffb35c; }
.home .btn-2 { border-color: var(--edge); color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.home .btn-2:hover { border-color: var(--teal); }
.home .note { font-size: 13.5px; color: var(--fg-3); margin-top: 14px; }

/* ── 맥 창틀 ──────────────────────────────────────── */
.home .win {
    margin-top: clamp(38px, 6vw, 62px);
    line-height: 0;
    border: 1px solid var(--edge); border-radius: 16px; overflow: hidden;
    background: var(--ink-1);
    box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.home .win .bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px; border-bottom: 1px solid var(--edge);
    background: var(--ink-2);
}
.home .win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d525b; }
.home .win .bar i:nth-child(1) { background: #ec6a5e; }
.home .win .bar i:nth-child(2) { background: #f4bf4f; }
.home .win .bar i:nth-child(3) { background: #61c554; }
.home .win .bar span { margin-left: 8px; font-size: 12.5px; color: var(--fg-3); }
.home .win img { display: block; width: 100%; height: auto; }

/* ── 숫자 줄 ──────────────────────────────────────── */
.home .stats { display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 60px); margin-top: 34px; }
.home .stats div .n {
    font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em;
    color: var(--fg); line-height: 1;
}
.home .stats div .n em { font-style: normal; color: var(--teal); }
.home .stats div .l { font-size: 13.5px; color: var(--fg-3); margin-top: 7px; }

/* ── 폴더 트리(움직이는 그림) ──────────────────────── */
.home .tree {
    border: 1px solid var(--edge); border-radius: 16px; background: var(--ink-1);
    padding: 22px 24px; font: 13.5px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--fg-2); overflow-x: auto;
}
.home .tree .row { opacity: 0; transform: translateX(-8px); }
.home .tree.go .row { animation: rowin .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rowin { to { opacity: 1; transform: none } }
.home .tree .y { color: var(--fg); font-weight: 700; }
.home .tree .m { color: var(--teal); }
.home .tree .c { color: var(--fg-3); float: right; }

/* ── 약속 네 장 ───────────────────────────────────── */
.home .vow4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px,100%), 1fr)); gap: 14px; margin-top: 34px; }
.home .vow {
    border: 1px solid var(--edge); border-radius: 15px; padding: 22px;
    background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
}
.home .vow .k {
    width: 34px; height: 34px; border-radius: 10px; margin-bottom: 13px;
    display: grid; place-items: center; font-size: 14px; font-weight: 800;
    color: var(--ink-0); background: linear-gradient(140deg, var(--teal), var(--amber));
}
.home .vow h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.home .vow p { font-size: 14px; margin: 0; line-height: 1.65; }

/* ── 만든 것들: 벤토 ──────────────────────────────── */
.home .bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr)); gap: 14px; margin-top: 36px; }
.home .tile {
    position: relative; border: 1px solid var(--edge); border-radius: 18px;
    padding: 24px; background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
    transition: transform .2s ease, border-color .2s ease;
}
.home .tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 50%, var(--edge)); }
.home .tile.wide { grid-column: span 2; }
@media (max-width: 720px) { .home .tile.wide { grid-column: span 1; } }
.home .tile .top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.home .tile .ico { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.home .tile .ico.mark {
    display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--ink-0);
    background: linear-gradient(140deg, var(--teal), var(--amber));
}
.home .tile h3 { font-size: 17px; font-weight: 750; margin: 0; letter-spacing: -.01em; }
.home .tile p { font-size: 14.5px; margin: 0; line-height: 1.68; }
.home .tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    padding: 3px 9px; border-radius: 999px; margin-top: 4px;
    color: var(--fg-3); border: 1px solid var(--edge);
}
.home .tag.live { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--edge)); }
.home .tile .go { display: inline-flex; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--teal); text-decoration: none; font-weight: 600; }
.home .tile .go:hover { text-decoration: underline; }

/* ── 두 칸 짜리 특징 ──────────────────────────────── */
.home .duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.home .duo + .duo { margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 860px) { .home .duo { grid-template-columns: 1fr; } .home .duo.flip > *:first-child { order: 2; } }

/* ── 바닥 ─────────────────────────────────────────── */
.home footer.wrap { max-width: 1120px; padding: 26px 28px 0; border-top-color: var(--edge); color: var(--fg-3); }
.home footer.wrap a { color: var(--fg-3); }
.home footer.wrap a:hover { color: var(--fg-2); }

/* ── 나타남 ───────────────────────────────────────── */
.home .rise { opacity: 0; transform: translateY(18px); }
.home .rise.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
    .home .aurora { animation: none; }
    .home .rise, .home .rise.in { opacity: 1; transform: none; transition: none; }
    .home .tree .row { opacity: 1; transform: none; }
    .home .tree.go .row { animation: none; }
    .home .btn:hover, .home .tile:hover { transform: none; }
}

/* 좁은 화면에선 머리띠가 빡빡하다 — 홈에서 바로 갈 수 있는 링크 하나를 접는다 */
@media (max-width: 620px) {
    /* 머리띠는 한 줄이라 링크가 늘면 바로 넘친다.
       홈에서 한 번에 갈 수 있는 링크를 접고, 남는 것만 줄인다. */
    .home header.top .wrap { gap: 12px; padding: 0 20px; }
    .home header.top .brand { flex: none; }
    .home header.top a[href="/neatling"],
    .home header.top a[href="/en/neatling"] { display: none; }
    .home header.top .lang { margin-left: 0; padding: 3px 9px; font-size: 12px; }
    .home .shell, .home .prose { padding-left: 20px; padding-right: 20px; }
}

/* 영문은 한글과 달리 긴 낱말·주소가 안 꺾인다(body 에 keep-all 이 걸려 있다).
   넘치느니 꺾는 편이 낫다. */
/* 라틴 문자 말은 긴 낱말·주소가 안 꺾인다(body 에 keep-all 이 걸려 있다).
   넘치느니 꺾는 편이 낫다. */
html[lang="en"] body,
html[lang="es"] body { overflow-wrap: anywhere; }

/* 언어 바꾸기 알약 */
.home header.top .lang {
    margin-left: 4px; padding: 4px 11px; border-radius: 999px;
    border: 1px solid var(--edge); font-size: 12.5px; font-weight: 650;
    color: var(--fg-2); letter-spacing: .02em;
}
.home header.top .lang:hover { border-color: var(--teal); color: var(--fg); }

/* 솔직하게 짚어두는 알림 줄 */
.home .heads-up {
    display: flex; gap: 11px; align-items: flex-start;
    border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--edge));
    background: color-mix(in srgb, var(--amber) 8%, transparent);
    border-radius: 13px; padding: 14px 16px; margin: 22px 0 0; max-width: 52ch;
    font-size: 14.5px; line-height: 1.6; color: var(--fg-2);
}
.home .heads-up b { color: var(--fg); }
.home .heads-up .ic { flex: none; font-size: 15px; line-height: 1.5; }

/* 언어 고르기 — 넷이 되어 알약 하나로는 모자란다. 자바스크립트 없이 details 로. */
.home header.top details.lang { position: relative; margin-left: 4px; }
.home header.top details.lang summary {
    list-style: none; cursor: pointer;
    padding: 4px 11px; border-radius: 999px; border: 1px solid var(--edge);
    font-size: 12.5px; font-weight: 650; color: var(--fg-2);
}
.home header.top details.lang summary::-webkit-details-marker { display: none; }
.home header.top details.lang summary:hover { border-color: var(--teal); color: var(--fg); }
.home header.top details.lang > div {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    display: flex; flex-direction: column; min-width: 132px;
    background: var(--ink-2); border: 1px solid var(--edge);
    border-radius: 12px; padding: 6px; gap: 2px;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.home header.top details.lang a {
    padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--fg-2);
}
.home header.top details.lang a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.home header.top details.lang a[aria-current] { color: var(--teal); font-weight: 650; }

/* 한국어는 낱말을 안 자르는 편이 읽기 좋아 body 에 keep-all 을 걸어 두었다.
   그런데 일본어·중국어는 낱말 사이에 띄어쓰기가 없어, keep-all 이면 한 줄이
   끝없이 길어져 화면 밖으로 넘친다. 그 두 말에서는 보통대로 꺾는다. */
html[lang="ja"] body,
html[lang^="zh"] body { word-break: normal; overflow-wrap: anywhere; line-break: strict; }

/* ── 영상 칸 ────────────────────────────────────────────────
   preload="none" 이라 누르기 전에는 한 바이트도 안 받는다. 표지 그림만
   뜬다. 휴대폰 데이터로 들어온 사람에게 1.4MB 를 몰래 태우지 않으려는 것. */
.home .filmstrip { margin: 84px auto 0; max-width: 1000px; }
.home .filmstrip h2 { margin-bottom: 18px; }
.home .filmstrip video {
    width: 100%; height: auto; display: block;
    border-radius: 16px; background: #0b0e10;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.home .filmstrip .cap {
    margin-top: 12px; font-size: 14.5px; color: var(--ink-faint);
}

/* i Day 소개 — 폰 화면은 작게 넣어야 '폰'으로 읽힌다. 크게 넣으면 세로로만 길어져 페이지가 늘어진다 */
.shot{display:block;margin:0 auto;width:100%;max-width:230px;height:auto;
  border-radius:20px;box-shadow:0 10px 34px rgba(0,0,0,.30)}
.shot-wide{max-width:420px;border-radius:16px}
@media (max-width:640px){ .shot{max-width:210px} .shot-wide{max-width:320px} }

/* 머리줄에 앱을 나란히 — Neatling · i Day. 눌러 각 소개로 간다 */
header.top .brand.pair{margin-right:0}
header.top .brand-sep{width:1px;height:16px;background:currentColor;opacity:.22;margin:0 12px;flex:none}
header.top .brand.brand-sub{margin-right:auto;opacity:.82}
header.top .brand.brand-sub:hover{opacity:1}
@media (max-width:560px){                       /* 좁으면 i Day는 아이콘만 */
  header.top .brand.brand-sub{font-size:0;gap:0}
  header.top .brand-sep{margin:0 8px}
}

/* i Day 히어로 — '말하면 그냥 일정이 됩니다'를 눈으로 보여준다.
   마이크에서 소리가 퍼지고 → 말한 문장이 떠오르고 → 일정 카드가 만들어진다. */
.voice{display:flex;flex-direction:column;align-items:center;gap:30px;margin:40px auto 10px;max-width:520px}
.voice-mic{position:relative;flex:none;width:112px;height:112px;margin:34px 0;border-radius:50%;
  background:linear-gradient(160deg,#10B981,#059669);color:#fff;font-size:48px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 40px rgba(16,185,129,.42)}
.voice-mic .w{position:absolute;inset:0;border-radius:50%;border:2.5px solid #10B981;
  opacity:0;animation:vWave 2.4s cubic-bezier(.2,.6,.3,1) infinite}
.voice-mic .w.d2{animation-delay:.8s}
.voice-mic .w.d3{animation-delay:1.6s}
@keyframes vWave{0%{transform:scale(1);opacity:.6}70%{opacity:.14}100%{transform:scale(1.72);opacity:0}}

.voice-say{max-width:100%;white-space:nowrap;overflow:hidden;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:16px;padding:11px 16px;font-size:1.02rem;letter-spacing:-.01em;
  animation:vType 6s steps(20) infinite}
@keyframes vType{0%{width:0}30%{width:19em}88%{width:19em}100%{width:0}}

.voice-card{display:flex;align-items:center;gap:13px;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);
  border-radius:16px;padding:13px 18px;
  animation:vCard 6s ease-in-out infinite}
.voice-card small{display:block;opacity:.62;font-size:.84rem;margin-top:2px}
@keyframes vCard{0%,32%{opacity:0;transform:translateY(10px)}46%,92%{opacity:1;transform:none}100%{opacity:0}}

/* 시계 뱃지 — 이 앱의 표식. 절반 찬 모습(30분)으로 그린다 */
.voice-badge{flex:none;width:44px;height:44px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:1.15rem;color:#0a1014;
  background:conic-gradient(#10B981 0 50%, #d7e6e1 0)}

@media (max-width:560px){
  .voice-mic{width:92px;height:92px;font-size:40px;margin:26px 0}
  .voice{gap:24px}
  .voice-say{font-size:.92rem}
}
@media (prefers-reduced-motion:reduce){
  .voice-mic .w,.voice-say,.voice-card{animation:none}
  .voice-say{width:auto}
}

/* i Day — '나만의 휴일도 빨간날로'. 회색 숫자가 빨갛게 바뀌는 순간을 보여준다 */
.holcal{margin:34px auto 22px;max-width:460px}
.holrow{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.holday{position:relative;aspect-ratio:1/1.15;border-radius:14px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  display:flex;align-items:flex-start;justify-content:center;padding-top:12px}
.holday b{font-size:1.22rem;font-weight:800;opacity:.72}
.holday.mark{animation:holMark 4.2s ease-in-out infinite}
.holday.mark b{animation:holNum 4.2s ease-in-out infinite}
.holtag{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);
  font-size:.68rem;font-weight:800;color:#fff;background:#d63c2f;
  border-radius:6px;padding:2px 7px;white-space:nowrap;
  animation:holTag 4.2s ease-in-out infinite}
@keyframes holMark{0%,38%{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
  52%,92%{background:rgba(214,60,47,.16);border-color:rgba(214,60,47,.55)}
  100%{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}}
@keyframes holNum{0%,38%{color:inherit;opacity:.72}52%,92%{color:#ff6b5e;opacity:1}100%{color:inherit;opacity:.72}}
@keyframes holTag{0%,44%{opacity:0;transform:translateX(-50%) translateY(5px)}
  56%,92%{opacity:1;transform:translateX(-50%)}100%{opacity:0}}

.holhint{margin-top:16px;text-align:center;font-size:.92rem;opacity:.68}
.holbtn{display:inline-block;border:1.5px solid #d63c2f;color:#ff6b5e;border-radius:8px;
  padding:3px 10px;font-weight:800;font-size:.86rem;margin:0 2px}
@media (prefers-reduced-motion:reduce){
  .holday.mark,.holday.mark b,.holtag{animation:none}
  .holday.mark{background:rgba(214,60,47,.16);border-color:rgba(214,60,47,.55)}
  .holtag{opacity:1;transform:translateX(-50%)}
}

/* 소리 켜기 — 자동 재생은 브라우저가 막으므로 사람이 눌러 켠다. 기본은 꺼짐 */
.soundbtn{display:block;margin:2px auto 0;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.18);color:inherit;border-radius:999px;
  padding:7px 16px;font-size:.86rem;font-weight:700;opacity:.72;cursor:pointer}
.soundbtn:hover{opacity:1}
.soundbtn[aria-pressed="true"]{background:rgba(16,185,129,.18);border-color:rgba(16,185,129,.5);opacity:1}
/* 소리를 켠 동안에는 애니메이션을 소리와 같은 지점에서 다시 시작시킨다 */
.voice.playing .voice-say,.voice.playing .voice-card{animation-name:none}
.voice.playing .voice-say{animation-name:vType}
.voice.playing .voice-card{animation-name:vCard}

/* '손으로 적어도 됩니다' — 글자가 찍히고 → 날짜·시각·장소로 나뉘는 모습 */
.type{margin:34px auto 0;max-width:560px;display:flex;flex-direction:column;align-items:center;gap:22px}
.type-field{width:100%;display:flex;align-items:center;gap:2px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);
  border-radius:16px;padding:16px 20px;font-size:1.12rem;letter-spacing:-.01em;
  min-height:60px;overflow:hidden}
.type-text{white-space:nowrap;overflow:hidden;animation:tType 6s steps(18) infinite}
/* 27% = 1620ms 동안 18글자 → 한 글자에 90ms. 소리 18번과 정확히 같은 박자 */
@keyframes tType{0%{width:0}27%{width:17.5em}88%{width:17.5em}100%{width:0}}
.type-caret{width:2px;height:1.35em;background:#10B981;flex:none;animation:tCaret .9s step-end infinite}
@keyframes tCaret{0%,50%{opacity:1}51%,100%{opacity:0}}

.type-out{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.chip-o{border-radius:999px;padding:8px 15px;font-size:.94rem;font-weight:700;
  border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);
  opacity:0;animation:tChip 6s ease-in-out infinite}
.chip-o.c2{animation-delay:.16s}
.chip-o.c3{animation-delay:.32s}
@keyframes tChip{0%,44%{opacity:0;transform:translateY(9px)}56%,92%{opacity:1;transform:none}100%{opacity:0}}

.shot-big{max-width:290px}
@media (max-width:640px){ .shot-big{max-width:240px} .type-field{font-size:.98rem;padding:13px 15px} }
@media (prefers-reduced-motion:reduce){
  .type-text,.type-caret,.chip-o{animation:none}
  .type-text{width:auto}.chip-o{opacity:1;transform:none}
}
/* 소리를 켠 동안에는 소리와 같은 지점에서 애니메이션을 다시 시작 */
.type.playing .type-text{animation-name:none;animation-name:tType}
.type.playing .chip-o{animation-name:none;animation-name:tChip}

/* 시계 뱃지 설명 — 앱이 그리는 방식(conic-gradient)을 그대로 써서 실제와 똑같이 보인다 */
.badgelab{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:34px auto 0;max-width:520px}
.badgelab figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:11px}
.bg{width:74px;height:74px;border-radius:21px;display:flex;align-items:center;justify-content:center;
  background:conic-gradient(#10B981 0 var(--p), #d7e6e1 0);position:relative}
.bg b{font-size:1.6rem;font-weight:800;color:#0a1014;line-height:1}
.bg::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,transparent 0 88deg,rgba(0,0,0,.22) 88deg 90deg)}
.bg.sixth::after{background:repeating-conic-gradient(from 0deg,transparent 0 58deg,rgba(0,0,0,.22) 58deg 60deg)}
.bg.allday{background:#5b8def}
.bg.allday b{color:#fff}
.bg.allday::after{display:none}
.badgelab figcaption{text-align:center;line-height:1.35}
.badgelab figcaption strong{display:block;font-size:1.02rem;font-weight:800}
.badgelab figcaption span{font-size:.84rem;opacity:.6}

.badgenote{display:grid;gap:14px;margin:30px auto 0;max-width:560px}
.badgenote>div{display:flex;align-items:center;gap:15px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:14px;padding:13px 16px}
.badgenote p{margin:0;font-size:.95rem;line-height:1.5}
.bg.sm{width:50px;height:50px;border-radius:15px;flex:none}
.bg.sm b{font-size:1.1rem}

@media (max-width:560px){
  .badgelab{grid-template-columns:repeat(2,1fr);gap:20px;max-width:320px}
  .bg{width:66px;height:66px;border-radius:19px}
}


/* ── 첫 화면 머리: 로고 레터링 · 손글씨 · 안내 모션 ─────────────
   글꼴이 없는 컴퓨터에서도 똑같이 보이도록 **외곽선 SVG** 를 쓴다.
   워드마크는 HTML 안에 직접 넣어야 글자색을 물려받는다(currentColor).
   손글씨는 마스크로 칠한다 — 파일은 밖에 두고 색만 CSS 가 정한다. */

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.home h1.wordmark, .hero h1.wordmark {
    margin: 26px 0 10px;
    line-height: 0;                 /* SVG 아래 빈 줄이 생기지 않게 */
}
h1.wordmark .wm {
    display: block;
    width: clamp(240px, 34vw, 420px);
    height: auto;
    color: var(--fg);
}

.handline { margin: 0 0 18px; line-height: 0; }
.handline .hand {
    display: block;
    height: clamp(26px, 3.4vw, 44px);
    aspect-ratio: var(--hand-ar);
    background: currentColor;
    color: color-mix(in srgb, var(--fg) 74%, transparent);
    -webkit-mask: var(--hand) no-repeat left center / contain;
            mask: var(--hand) no-repeat left center / contain;
}

.lead.lead-sub { margin-top: 0; }

/* 앱의 「처음 안내」를 그대로 녹화한 것. 소리 없이 저절로 반복된다. */
/* 화면 그림(.win)과 같은 틀을 쓴다 — 결이 맞고, 이미 잘 도는 것을 다시 만들지 않는다 */
.home .win.motion { max-width: 640px; background: #fff; margin-top: clamp(30px, 5vw, 46px); }
.home .win.motion img { display: block; width: 100%; height: auto; }

@media (max-width: 700px) {
    h1.wordmark .wm { width: min(78vw, 320px); }
    .handline .hand { height: clamp(22px, 6.4vw, 34px); }
}

/* 움직임을 줄이라고 해둔 사람에게는 멈춰 보여준다 */
@media (prefers-reduced-motion: reduce) {
    .motion img { animation-play-state: paused; }
}
