
  :root{
    --accent:#5A63E0; --accent-2:#6b73e8;
    --ink:#171f3d; --ink-soft:#39406b; --ink-mute:#6b719b;
    --line:rgba(23,31,61,.09);
    --ease:cubic-bezier(.22,.61,.36,1); --ease-out:cubic-bezier(.16,1,.3,1);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{-webkit-text-size-adjust:100%}
  body{
    color:var(--ink);
    font-family:'Pretendard',-apple-system,'Apple SD Gothic Neo',system-ui,sans-serif;
    line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
    /* v12: overflow-y:auto = safety net — extreme-short viewports scroll a little instead of overlapping;
       normal windows still fit within 100svh (no scrollbar). */
    height:100svh;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;
    background:#eef1f9;
  }
  /* brand mesh gradient (fixed colours) */
  body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
    background:
      radial-gradient(48% 46% at 14% 90%, rgba(78,66,228,.6), rgba(78,66,228,0) 60%),
      radial-gradient(44% 42% at 88% 10%, rgba(238,138,222,.5), rgba(238,138,222,0) 58%),
      radial-gradient(58% 52% at 66% 44%, rgba(150,197,240,.3), rgba(150,197,240,0) 64%),
      #eef1f9;}
  body::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.05;mix-blend-mode:soft-light;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");}

  /* v10: SETLOG layout — logo+phone centered in the TOP region (.hero-top absorbs slack, flex:1),
     download card + age-note pinned to the bottom (just above the footer). flex-start (NOT space-between,
     which would float .dl to mid-screen); .hero-top:flex:1 pushes the trailing pair down. */
  /* v12: min-height:min-content — on extreme-short viewports the page grows to its content (then body
     scrolls) instead of squishing children into overlap. */
  .page{position:relative;z-index:1;flex:1;min-height:min-content;
    width:100%;max-width:600px;margin:0 auto;padding:clamp(4px,0.6svh,20px) 22px;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;
    gap:clamp(4px,0.65svh,12px);}
  /* top region: eats all vertical slack so logo+phone float centered above the download block.
     static (no position/z-index) → .head/.phone keep stacking in .page's context (deco layering intact).
     safe center = center, but never clips the logo if a viewport is too short. */
  .hero-top{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;
    justify-content:safe center;gap:clamp(4px,0.65svh,12px);}
  /* text/QR sit ABOVE the phone layer so the phone-hugging decorations never hurt readability */
  .page>p{position:relative;z-index:1}
  /* logo + tagline + subline read as ONE tight block, then roomy gaps to phone/QR/footer */
  .head{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:clamp(3px,0.5svh,9px)}

  /* logo = the "Nabïe" WORDMARK only — CSS-crop the bottom of logo.png (symbol above is clipped); original untouched */
  .logo{position:relative;width:clamp(104px,15vw,146px);aspect-ratio:324/117;overflow:hidden;
    filter:drop-shadow(0 8px 18px rgba(90,99,224,.2));}
  .logo img{position:absolute;left:0;bottom:0;width:100%;height:auto;display:block}
  .tagline{font-weight:700;letter-spacing:-.03em;word-break:keep-all;
    font-size:clamp(15px,2.35svh,23px);color:var(--ink);line-height:1.2;}
  .tagline .em{background:linear-gradient(120deg,var(--accent),#8a6bf0 70%);
    -webkit-background-clip:text;background-clip:text;color:transparent;}
  .subline{font-size:clamp(12px,1.7svh,15px);color:var(--ink-mute);font-weight:450;letter-spacing:-.01em;margin-top:-2px;}

  /* ── phone: real chat screen ── */
  /* thin-line frame (setlog style): no thick bezel — a delicate indigo hairline, screen fills inside */
  /* v8: phone enlarged to 62svh (fixed); its layer sits UNDER head/QR (z-index:0) so hugging decorations stay behind text */
  /* v9: wider phone — aspect 9/19.6 → 9/17.5 (width grows). The 435px reserve includes the structured
     business-information footer so the phone never overlaps the QR card; min 160 keeps short screens safe. */
  .phone{position:relative;z-index:0;height:clamp(160px,min(62svh,100svh - 435px),540px);flex:none;
    aspect-ratio:9/17.5;padding:4px;border-radius:34px;
    background:rgba(255,255,255,.28);border:1.5px solid rgba(123,127,230,.62);
    box-shadow:0 26px 56px -32px rgba(23,31,61,.4),0 6px 18px -12px rgba(90,99,224,.28);}
  /* size container → phone internals below use cqw and scale in proportion with the phone */
  .screen{position:relative;height:100%;border-radius:29px;overflow:hidden;display:flex;flex-direction:column;
    container-type:size;background:linear-gradient(165deg,#c9e7f6,#a7b0ee 58%,#8f8ce6);}
  .chr{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 3%;z-index:0;}
  /* bottom scrim so glass UI + bubbles stay legible over the portrait */
  .scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(20,26,55,.28) 0,rgba(20,26,55,0) 22%,rgba(20,26,55,0) 46%,rgba(20,26,55,.5) 100%);}
  .glass-screen{position:absolute;inset:0;z-index:2;pointer-events:none;
    background:linear-gradient(133deg,rgba(255,255,255,.16) 0 12%,rgba(255,255,255,0) 30%);}

  /* header */
  /* minimal glass header — just the name + a subtle online cue */
  .chead2{position:relative;z-index:3;display:flex;align-items:baseline;gap:3.3cqw;
    padding:3.8cqw 6.6cqw;background:rgba(255,255,255,.26);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border-bottom:.5px solid rgba(255,255,255,.3);}
  .chead2 .nb{font-size:6cqw;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(23,31,61,.45);letter-spacing:-.01em}
  .chead2 .on{font-size:4.4cqw;color:rgba(255,255,255,.9);text-shadow:0 1px 2px rgba(23,31,61,.4);
    display:inline-flex;align-items:center;gap:2.2cqw;transform:translateY(-1px)}
  .chead2 .on i{width:2.5cqw;height:2.5cqw;border-radius:50%;background:#3ee08f;box-shadow:0 0 5px rgba(62,224,143,.85)}

  /* conversation — pinned to the bottom, face shows above */
  .flow{position:relative;z-index:3;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;
    gap:3.3cqw;padding:4.9cqw 6cqw 2.7cqw;}
  /* delicate, regular-weight chat (not bold/chunky) — sizes track the phone via cqw */
  .b2{max-width:72%;padding:3.3cqw 5.5cqw;font-size:4.6cqw;font-weight:400;line-height:1.46;text-align:left;word-break:keep-all;
    border-radius:7.1cqw;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
  .b2.ai{align-self:flex-start;background:rgba(255,255,255,.8);color:var(--ink);
    border-bottom-left-radius:2.7cqw;box-shadow:0 3px 12px -4px rgba(23,31,61,.28)}
  .b2.me{align-self:flex-end;color:#fff;border-bottom-right-radius:2.7cqw;
    background:linear-gradient(135deg,rgba(107,115,232,.94),rgba(90,99,224,.94));
    box-shadow:0 4px 14px -5px rgba(90,99,224,.6)}

  /* input */
  .inbar2{position:relative;z-index:3;margin:2.2cqw 4.9cqw 4.9cqw;height:15.3cqw;border-radius:100px;
    background:rgba(255,255,255,.4);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border:.5px solid rgba(255,255,255,.5);display:flex;align-items:center;gap:3.3cqw;padding:0 2.2cqw 0 6.6cqw;
    font-size:4.4cqw;color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(23,31,61,.3)}
  .inbar2 .ph{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .inbar2 .mic,.inbar2 .snd{flex:none;display:inline-flex;align-items:center;justify-content:center}
  .inbar2 .mic svg{width:8.2cqw;height:8.2cqw;fill:#fff;opacity:.9;filter:drop-shadow(0 1px 2px rgba(23,31,61,.3))}
  .inbar2 .snd{width:13.7cqw;height:13.7cqw;border-radius:50%;background:linear-gradient(135deg,var(--accent-2),var(--accent))}
  .inbar2 .snd svg{width:6.6cqw;height:6.6cqw;fill:#fff}

  /* ── decorations: butterflies hug the phone edges; sparkles/stars/heart/bubble/moon cluster around it ── */
  /* all are children of .phone → they cluster around the phone at any size; the phone layer sits under head/QR (z-index) */
  .deco{position:absolute;pointer-events:none;line-height:0;opacity:.92}
  .deco svg{display:block;width:100%;height:100%}
  /* 3 butterflies hugging left/right edges (8–20px gap) */
  .bfly.bL1{width:30px;height:30px;left:-38px;top:15%;color:#8a6bf0;animation:float 7s var(--ease) infinite}
  .bfly.bR1{width:24px;height:24px;right:-34px;top:37%;color:#ee8ade;animation:float 8.4s var(--ease) infinite .7s}
  .bfly.bL2{width:26px;height:26px;left:-34px;bottom:13%;color:#6f9ee8;animation:float 9.2s var(--ease) infinite .4s}
  /* 3 sparkles */
  .spk.k1{width:14px;height:14px;right:-28px;top:11%;color:#5a63e0;animation:tw 3.4s var(--ease) infinite}
  .spk.k2{width:11px;height:11px;left:-24px;top:46%;color:#ee8ade;animation:tw 4s var(--ease) infinite .6s}
  .spk.k3{width:13px;height:13px;right:-26px;bottom:29%;color:#95ddf1;animation:tw 3.7s var(--ease) infinite 1.1s}
  /* 2 soft stars */
  .star.t1{width:13px;height:13px;left:-28px;top:5%;color:#ee8ade;animation:tw 4.3s var(--ease) infinite .3s}
  .star.t2{width:12px;height:12px;right:-24px;bottom:9%;color:#5a63e0;animation:tw 3.9s var(--ease) infinite .9s}
  /* heart + small speech bubble + crescent moon */
  .heart.h1{width:14px;height:14px;right:-32px;top:23%;color:#ee8ade;animation:float 7.6s var(--ease) infinite .5s}
  .chatico.c1{width:15px;height:15px;left:-30px;bottom:31%;color:#5a63e0;animation:float 8.8s var(--ease) infinite .2s}
  .moon.m1{width:15px;height:15px;right:-28px;top:2%;color:#95c5f0;animation:float 9.5s var(--ease) infinite .4s}
  @keyframes float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-9px) rotate(4deg)}}
  @keyframes tw{0%,100%{opacity:.3;transform:scale(.82)}50%{opacity:1;transform:scale(1.12)}}

  /* ── download (compact) ── */
  /* QR/store card pinned to the BOTTOM (just above the footer) — setlog download placement */
  /* QR/store card — compact, clearly SMALLER than the phone (phone stays the hero) */
  /* v11: .dl set scales with svh (like the phone) — caps at current size (vh≥871), shrinks on short viewports.
     No container-type: svh clamps scale directly off viewport height. max-width:100% guards narrow horizontal. */
  .dl{position:relative;z-index:1;width:clamp(193px,37.43svh,326px);max-width:100%;
    background:rgba(255,255,255,.6);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
    border:1px solid rgba(255,255,255,.72);border-radius:clamp(10px,1.95svh,17px);padding:clamp(7px,1.38svh,12px) clamp(8px,1.49svh,13px);
    box-shadow:0 18px 44px -32px rgba(23,31,61,.36),inset 0 1px 0 rgba(255,255,255,.6);
    display:flex;align-items:center;gap:clamp(7px,1.38svh,12px);}
  .qrwrap{flex:none;display:flex;flex-direction:column;align-items:center;gap:clamp(2px,0.46svh,4px)}
  .qr{width:clamp(47px,9.18svh,80px);aspect-ratio:1;background:#fff;border-radius:10px;border:.5px solid var(--line);
    padding:6px;display:flex;box-shadow:0 5px 14px -10px rgba(23,31,61,.3)}
  .qr canvas,.qr img{width:100%!important;height:100%!important;display:block}
  .qrhint{font-size:clamp(5px,1.03svh,9px);color:var(--ink-mute)}
  .stores{flex:1;display:flex;flex-direction:column;gap:clamp(4px,0.80svh,7px)}
  .store{display:flex;align-items:center;gap:clamp(5px,0.92svh,8px);background:#131a30;color:#fff;
    padding:clamp(4px,0.69svh,6px) clamp(7px,1.26svh,11px);border-radius:clamp(7px,1.26svh,11px);text-align:left;
    box-shadow:0 6px 16px -12px rgba(19,26,48,.6),inset 0 1px 0 rgba(255,255,255,.08);
    transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
  .store:hover{transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(19,26,48,.6),inset 0 1px 0 rgba(255,255,255,.12)}
  .store svg{width:16px;height:16px;flex:none;fill:#fff}
  .store .x{line-height:1.1}
  .store .x small{display:block;font-size:clamp(5px,0.98svh,8.5px);opacity:.72;font-weight:400}
  .store .x b{font-size:clamp(9px,1.84svh,16px);font-weight:600}
  a{color:inherit;text-decoration:none;touch-action:manipulation}
  .note19{display:inline-flex;align-items:center;gap:6px;font-size:clamp(9px,1.84svh,16px);color:var(--ink-mute)}
  .note19 .b19{font-weight:700;color:var(--ink-soft);border:1px solid var(--line);border-radius:100px;padding:1px 7px;font-size:10.5px}

  footer{position:relative;z-index:1;flex:none;padding:clamp(5px,1svh,12px) 22px calc(clamp(7px,1.2svh,14px) + env(safe-area-inset-bottom));text-align:center}
  .fco{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:1px 12px;
    font-size:clamp(8.5px,2.25vw,10px);color:rgba(107,113,155,.78);line-height:1.7;
    max-width:72rem;margin:0 auto;padding:0 4px;word-break:keep-all}
  .biz-company{flex-basis:100%;font-size:1.08em;font-weight:650;color:rgba(82,88,132,.9);white-space:nowrap}
  .biz-line{white-space:nowrap}
  .biz-address{white-space:normal}
  .flx{margin-top:8px;display:flex;gap:5px 13px;flex-wrap:wrap;justify-content:center;font-size:11.5px}
  .flx a{color:var(--ink-soft);border-radius:4px} .flx a:hover{color:var(--accent)}
  .flx i{font-style:normal;color:var(--line)}

  @media (max-width:600px){
    .biz-line{flex-basis:100%}
  }

  a:focus-visible,.store:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}

  /* page-load stagger */
  .rise{opacity:0;transform:translateY(16px);animation:rise .8s var(--ease-out) both}
  .r1{animation-delay:.02s}.r2{animation-delay:.1s}.r3{animation-delay:.16s}
  .r4{animation-delay:.24s}.r5{animation-delay:.34s}.r6{animation-delay:.42s}
  @keyframes rise{to{opacity:1;transform:none}}
  @media (prefers-reduced-motion:reduce){
    .rise{animation:none;opacity:1;transform:none}
    .deco{animation:none!important}
  }

/* Japanese page adaptations only. The Korean stylesheet is untouched. */
body{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;height:auto;min-height:100svh}
.page{max-width:650px;padding-bottom:24px;gap:14px}
.hero-top{gap:16px}.tagline{font-size:clamp(21px,4vw,28px);line-height:1.5;word-break:normal}.subline{font-size:14px;line-height:1.8;word-break:normal}
.phone{height:clamp(290px,49svh,450px)}.b2{word-break:normal;overflow-wrap:anywhere}.chead2 .nb{font-size:5.5cqw}.ph{font-size:4.1cqw}
.jp-ready{position:relative;z-index:1;width:100%;max-width:440px;padding:20px 24px;border:1px solid rgba(255,255,255,.86);border-radius:24px;background:rgba(255,255,255,.6);box-shadow:0 12px 32px -26px rgba(23,31,61,.32);text-align:left}
.jp-ready h2{font-size:17px;margin-bottom:8px}.jp-ready p{font-size:13px;line-height:1.9;color:#39406b}.jp-age{font-size:12px;color:#39406b;line-height:1.8;max-width:460px}
footer{padding-top:12px}.flx{flex-wrap:wrap}.flx a{padding:8px 4px;display:inline-block}.jp-note{margin-top:12px;font-size:11px;line-height:1.8;color:#5b6287}
