/* Palette sampled from the kikitol logo and store screenshots */
:root{
  --yellow:#FBBC05;      /* logo / screenshot background */
  --red:#EA4335;         /* logo accent */
  --red-d:#B3261E;       /* red for text on light surfaces (AA) */
  --ink:#1B1A17;         /* warm near-black, from the outlined screenshot type */
  --ink-soft:#4A3F12;    /* secondary text on yellow */
  --mute:#585C66;        /* secondary text on white / grey */
  --grey:#ECEBEF;        /* app UI surface */
  --steel:#C3CDDC;       /* app UI blue-grey: lines, dividers */
  --blue:#1F6FD6;        /* app selection blue, darkened for focus rings */
  --white:#FFFFFF;
  --yellow-tint:#FFF3C4; /* highlight surface */
  --maxw:1080px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg{max-width:100%}
body{margin:0;background:var(--white);color:var(--ink);
  font-family:"Noto Sans JP","Noto Sans KR",system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.75;-webkit-font-smoothing:antialiased;word-break:break-word;overflow-wrap:anywhere}
html[lang="ko"] body{font-family:"Noto Sans KR","Noto Sans JP",system-ui,sans-serif;word-break:keep-all}
html[lang="en"] body{font-family:"Bricolage Grotesque","Noto Sans JP",system-ui,sans-serif}
a{color:inherit}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}

/* header */
.site-head{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--steel)}
/* mobile first: row 1 = logo + language, row 2 = swipeable section nav */
.site-head .wrap{display:flex;align-items:center;flex-wrap:wrap;column-gap:20px;padding-top:6px;padding-bottom:0}
.logo{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:800;font-size:1.15rem;text-decoration:none;letter-spacing:.02em}
.logo img{width:auto;height:32px;display:block}
.nav{order:3;flex:1 0 100%;display:flex;gap:22px;overflow-x:auto;white-space:nowrap;font-size:.88rem;padding:0 0 4px;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{display:inline-flex;align-items:center;min-height:36px;text-decoration:none;color:var(--mute)}
.nav a:hover{color:var(--ink)}
.lang{display:flex;gap:2px;margin-left:auto;border:1px solid var(--steel);border-radius:999px;padding:2px;background:var(--white)}
.lang a{display:inline-flex;align-items:center;min-height:36px;padding:0 13px;border-radius:999px;text-decoration:none;font-size:.82rem;color:var(--mute)}
.lang a[aria-current="true"]{background:var(--ink);color:var(--white)}
@media(min-width:900px){
  .site-head .wrap{flex-wrap:nowrap;height:60px;padding-top:0}
  .nav{order:0;flex:0 1 auto;margin-left:auto;overflow:visible;font-size:.9rem;padding:0}
  .nav a{min-height:0}
  .lang{margin-left:0}
  .lang a{min-height:30px}
}

/* hero */
.hero{padding:56px 0 72px;background:var(--yellow)}
.hero-grid{display:grid;gap:40px}
@media(min-width:900px){.hero-grid{grid-template-columns:1.05fr .95fr;align-items:center;gap:56px}}
h1{font-size:clamp(1.5rem,3.6vw,2.4rem);line-height:1.3;text-wrap:balance;word-break:auto-phrase;margin:0 0 20px;font-weight:800;letter-spacing:-.01em}
h1 .dim{color:var(--white);-webkit-text-stroke:7px var(--ink);paint-order:stroke fill;stroke-linejoin:round}
.lead{font-size:1.05rem;color:var(--ink);max-width:34em;margin:0 0 28px}
.cta-row{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:12px;font-weight:700;text-decoration:none;font-size:.98rem}
.btn-primary{background:var(--ink);color:var(--white)}
.btn-primary:hover{background:#000}
.btn-ghost{background:var(--white);border:1.5px solid var(--ink);color:var(--ink)}
.btn-ghost:hover{background:var(--grey)}
.badge{display:inline-flex;align-items:center;border-radius:8px}
.badge img{display:block;max-width:none}
.status{margin:14px 0 0;font-size:.85rem;color:var(--ink-soft)}

/* QR card: shown instead of the store buttons on desktop (mouse + hover devices).
   Phones and tablets keep the buttons. Pure CSS, so it also works without JS. */
.qr-card{display:none;background:var(--white);border-radius:18px;padding:18px 20px 16px;width:fit-content;max-width:100%;box-shadow:0 14px 30px -18px rgba(27,26,23,.5)}
.qr-title{margin:0 0 12px;font-weight:700;font-size:.95rem}
.qr-grid{display:flex;flex-wrap:wrap;gap:12px 20px}
.qr-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px;border-radius:12px;text-decoration:none;color:var(--ink)}
.qr-item:hover{background:var(--yellow-tint)}
.qr-img{display:block;flex:none;border:1px solid var(--steel);border-radius:10px;overflow:hidden;background:var(--white)}
.qr-img .qr{display:block;width:100%;height:100%;shape-rendering:crispEdges}
.qr-cap{display:flex;flex-direction:column;align-items:center;line-height:1.35}
.qr-cap small{color:var(--mute);font-size:.8rem}
.qr-note{margin:10px 0 0;font-size:.8rem;color:var(--mute)}
@media(hover:hover) and (pointer:fine){
  .cta-row{display:none}
  .qr-card{display:block}
}

/* demo */
.demo{background:var(--white);border-radius:22px;padding:22px 22px 24px;box-shadow:0 18px 40px -20px rgba(27,26,23,.45)}
.demo h2{font-size:.95rem;margin:0 0 14px;font-weight:700}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.tab{min-height:40px;border:1px solid var(--steel);background:var(--grey);color:var(--mute);border-radius:999px;padding:0 14px;font:inherit;font-size:.85rem;cursor:pointer}
.tab[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:var(--yellow);font-weight:700}
.panel[hidden]{display:none}
.row-label{font-size:.78rem;color:var(--mute);margin:0 0 4px}
.en-line{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:1.45rem;font-weight:600;line-height:1.35;margin:0 0 18px;word-break:normal}
.heard{background:var(--yellow-tint);border-radius:14px;padding:14px 16px 12px;margin-top:4px}
.heard .en-line{margin-bottom:8px;transition:filter .45s ease,opacity .45s ease}
.heard mark{background:transparent;color:var(--red-d);border-bottom:3px solid var(--red);padding:0 1px}
.heard .note{margin:0;font-size:.88rem;color:var(--ink-soft);transition:opacity .45s ease}
.heard.veiled .en-line{filter:blur(9px);opacity:.55;user-select:none}
.heard.veiled .note{opacity:0}
.reveal{margin-top:14px;width:100%;min-height:46px;border-radius:10px;border:1.5px solid var(--ink);background:var(--white);font:inherit;font-weight:700;cursor:pointer}
.reveal:hover{background:var(--grey)}

/* sections */
section{padding:72px 0}
section.alt{background:var(--grey)}
h2.sec{font-size:clamp(1.4rem,3.4vw,2rem);line-height:1.4;text-wrap:balance;word-break:auto-phrase;margin:0 0 14px;font-weight:800;max-width:22em}
.sec-lead{color:var(--ink);max-width:38em;margin:0 0 36px}

.phen{display:grid;gap:0;border-top:3px solid var(--yellow)}
@media(min-width:760px){.phen{grid-template-columns:repeat(3,1fr)}.phen>div{border-left:1px solid var(--steel);padding-left:24px}.phen>div:first-child{border-left:0;padding-left:0}}
.phen>div{padding:22px 0}
.phen h3{margin:0 0 10px;font-size:1.2rem}
.phen .ex{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-size:1.25rem;font-weight:600;margin:0}
.phen .arrow{color:var(--red);margin:0 6px;font-weight:700}
.phen .heard-s{color:var(--red-d)}
.phen p.d{margin:10px 0 0;color:var(--mute);font-size:.92rem}

.feat{display:grid;gap:0}
@media(min-width:760px){.feat{grid-template-columns:1fr 1fr;column-gap:56px}}
.feat>div{padding:22px 0;border-top:1px solid var(--steel)}
.feat h3{margin:0 0 6px;font-size:1.1rem}
.feat p{margin:0;color:var(--ink);font-size:.97rem}

.modes{display:grid;gap:14px;margin-top:40px}
@media(min-width:760px){.modes{grid-template-columns:repeat(3,1fr)}}
.mode{background:var(--yellow-tint);border-radius:14px;padding:20px;border-left:5px solid var(--yellow)}
.mode h3{margin:0 0 6px;font-size:1.02rem}
.mode p{margin:0;font-size:.92rem;color:var(--ink)}

.steps{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:s}
@media(min-width:760px){.steps{grid-template-columns:repeat(4,1fr);gap:20px}}
.steps li{counter-increment:s;position:relative;padding:18px 0 18px 52px;border-top:1px solid var(--steel)}
@media(min-width:760px){.steps li{padding:56px 0 0;border-top:3px solid var(--yellow)}}
.steps li::before{content:counter(s);position:absolute;left:0;top:16px;width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--yellow);font-weight:800;display:grid;place-items:center}
@media(min-width:760px){.steps li::before{top:-19px}}
.steps h3{margin:0 0 4px;font-size:1.02rem}
.steps p{margin:0;font-size:.92rem;color:var(--ink)}

.who{display:flex;flex-wrap:wrap;gap:10px}
.who span{border-radius:999px;padding:7px 16px;font-size:.95rem;background:var(--grey);border:1px solid var(--steel)}

.faq details{border-top:1px solid var(--steel);padding:16px 0}
.faq details:last-child{border-bottom:1px solid var(--steel)}
.faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;font-size:1.3rem;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq p{margin:10px 0 0;color:var(--ink);max-width:40em}

.final{background:var(--yellow);text-align:left}
.final h2{font-size:clamp(1.6rem,4vw,2.4rem);margin:0 0 12px;font-weight:800}
.final p{color:var(--ink);margin:0 0 26px;max-width:34em}
.final .status{color:var(--ink-soft)}

footer{padding:40px 0 56px;font-size:.88rem;color:var(--mute);background:var(--white)}
footer .wrap{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between}
footer nav{display:flex;gap:20px;flex-wrap:wrap}



/* audio demo buttons */
.play{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 14px;margin:0 0 10px;border:1.5px solid var(--ink);border-radius:999px;background:var(--ink);color:var(--yellow);font:inherit;font-weight:700;font-size:.92rem;cursor:pointer}
.play:hover{background:#000}
.play-sub{background:var(--white);color:var(--ink);min-height:38px;font-size:.85rem;margin:-6px 0 14px}
.play-sub:hover{background:var(--grey)}
.play-ico{position:relative;width:18px;height:18px;flex:none}
.play-ico::before{content:"";position:absolute;left:3px;top:1px;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent currentColor}
.play.is-playing .play-ico::before{left:2px;top:2px;width:5px;height:14px;border:0;background:currentColor;box-shadow:8px 0 0 currentColor}

/* ---------- articles ---------- */
.narrow{max-width:760px}
.crumbs{font-size:.82rem;color:var(--ink-soft);margin:0 0 16px}
.crumbs a{color:var(--ink-soft)}
.crumbs [aria-hidden]{margin:0 8px}
.art-head{background:var(--yellow);padding:36px 0 34px}
.art-head h1{font-size:clamp(1.55rem,4.2vw,2.2rem);line-height:1.4;margin:0 0 12px}
.meta{margin:0;font-size:.88rem;color:var(--ink-soft)}
.art-list{padding:24px 0 56px}
.post-list{list-style:none;margin:0;padding:0;border-top:3px solid var(--yellow)}
.post-list li{border-bottom:1px solid var(--steel)}
.post-list a{display:block;padding:20px 0;text-decoration:none}
.post-list time{font-size:.8rem;color:var(--mute)}
.post-list h2,.post-list h3{margin:4px 0 6px;font-size:1.18rem;line-height:1.5;text-wrap:balance}
.post-list p{margin:0;font-size:.93rem;color:var(--mute)}
.post-list a:hover h2,.post-list a:hover h3{text-decoration:underline;text-underline-offset:3px}
.more-link{display:inline-block;margin-top:18px;font-weight:700}
.prose-wrap{padding:0}
.prose{padding-top:36px;padding-bottom:56px;font-size:1.03rem;line-height:1.95}
html[lang="en"] .prose{line-height:1.8}
.prose>*:first-child{margin-top:0}
.prose h2{font-size:1.4rem;line-height:1.5;margin:2.2em 0 .7em;padding-left:.7em;border-left:6px solid var(--yellow);text-wrap:balance}
.prose h3{font-size:1.15rem;line-height:1.5;margin:1.8em 0 .4em}
.prose p{margin:0 0 1.2em}
.prose ul,.prose ol{margin:0 0 1.2em;padding-left:1.4em}
.prose li{margin:.3em 0}
.prose a{color:var(--blue);text-underline-offset:3px}
.prose blockquote{margin:1.4em 0;padding:.7em 1.1em;background:var(--yellow-tint);border-left:5px solid var(--yellow);border-radius:0 12px 12px 0}
.prose blockquote p:last-child{margin:0}
.prose img{display:block;max-width:100%;height:auto;margin:1.4em auto;border-radius:12px}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:0 0 1.4em;font-size:.95rem}
.prose th,.prose td{border:1px solid var(--steel);padding:.5em .8em;text-align:left}
.prose th{background:var(--grey)}
.prose code{background:var(--grey);padding:.1em .35em;border-radius:5px;font-size:.92em}
.prose pre{background:var(--ink);color:var(--white);padding:1em;border-radius:12px;overflow-x:auto}
.prose pre code{background:none;padding:0}
.prose hr{border:0;border-top:1px solid var(--steel);margin:2em 0}
.prose mark{background:transparent;color:var(--red-d);border-bottom:3px solid var(--red);padding:0 1px}
.prose .en{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:600}

/* anchor jumps must clear the sticky header (two rows on phones) */
section[id]{scroll-margin-top:104px}
@media(min-width:900px){section[id]{scroll-margin-top:72px}}

/* phones */
@media(max-width:599px){
  .wrap{padding:0 16px}
  .hero{padding:28px 0 44px}
  .hero-grid{gap:28px}
  h1{margin-bottom:14px}
  .lead{font-size:1rem;margin-bottom:22px}
  .cta-row .btn{flex:1 1 100%}
  .demo{padding:18px 16px 20px;border-radius:18px}
  .en-line{font-size:1.25rem}
  section{padding:48px 0}
  .sec-lead{margin-bottom:26px}
  .modes{margin-top:28px}
  .who span{font-size:.9rem}
  .final h2{margin-bottom:10px}
  footer{padding:32px 0 40px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .heard .en-line,.heard .note{transition:none}
}
