/* REMA guide page. Colours and typeface follow the main site (navy ink, one blue accent, Manrope); the layout is the earlier guide design. */
:root{
  --ground:#FFFFFF; --tone:#F3F6FB; --tone-2:#CED8E8; --ink:#0B2A5B; --muted:#33496F;
  --accent:#1F5BE8; --deep:#0B2A5B; --on-accent:#FFFFFF;
  --t1:#0B2A5B; --t2:#1F5BE8; --t3:#5F86EE; --t4:#9CC0FF; --t5:#DCE5F5;
  --face:"Manrope","Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --step-small:clamp(.8125rem,.79rem + .1vw,.875rem);
  --step-body:clamp(1.0625rem,1rem + .25vw,1.1875rem);
  --step-lead:clamp(1.25rem,1.1rem + .7vw,1.625rem);
  --step-head:clamp(2rem,1.3rem + 3.2vw,4rem);
  --step-hero:clamp(2.4rem,1rem + 4.4vw,4.75rem);
  --m:clamp(16px,2vw,24px);
  --gap:clamp(96px,12vw,200px);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--face);font-size:var(--step-body);line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
[data-lang="ko"] .en,[data-lang="en"] .ko{display:none !important}
img{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:700;letter-spacing:-.02em;line-height:1.08;text-wrap:balance}
h2{font-size:var(--step-head)}
h3{font-size:var(--step-lead);line-height:1.2}
p{margin:0}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.wrap{padding-inline:max(var(--m), env(safe-area-inset-left, 0px)) max(var(--m), env(safe-area-inset-right, 0px))}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(8px,1.6vw,24px)}
section{margin-top:var(--gap)}
.small{font-size:var(--step-small)}
.muted{color:var(--muted)}

/* the one button shape: fully round, like the ball */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font:inherit;font-weight:500;line-height:1;text-decoration:none;border:0;border-radius:0;padding:1.05em 1.7em;background:var(--accent);color:var(--on-accent);cursor:pointer;transition:transform .18s ease,background-color .18s ease}
.btn:hover{background:var(--deep)}
.btn:active{transform:scale(.97)}
.btn.ink{background:var(--ink)}
.btn.ink:hover{background:var(--deep)}
.ball{display:inline-block;width:.62em;height:.62em;border-radius:50%;background:currentColor;flex:none}
.link{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:.08em}
.link:hover{color:var(--accent)}

/* ── hero: card beside the stage ───────────────────────── */
.hero{margin-top:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px;min-height:100svh}
.card{background:var(--tone);display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.band{display:flex;width:100%;height:56px;background:var(--ink);align-items:center;justify-content:space-around;padding-inline:14px;flex:none}
.band i{display:block;width:28px;height:28px;border-radius:50%;background:var(--tone);flex:none}
.card-top{width:100%;display:flex;justify-content:flex-end;padding:14px 16px 0}
.langbtn{font:inherit;font-size:var(--step-small);font-weight:500;background:none;border:0;color:var(--ink);cursor:pointer;padding:8px 10px;text-decoration:underline;text-underline-offset:.2em}
.card-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(20px,2.6vw,36px);padding:24px clamp(18px,3vw,48px)}
.wordmark{display:flex;align-items:center;gap:.5em;font-weight:700;font-size:var(--step-lead);letter-spacing:.01em;text-decoration:none}
.rm{display:block;flex:0 0 auto;height:2em;width:auto}
h1{font-size:var(--step-hero);line-height:1.04}
[data-lang="en"] h1{font-size:calc(var(--step-hero) * .86)}
.hero .sub{max-width:34ch;font-size:var(--step-body)}
.card-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;padding:0 16px 28px;font-weight:500}
.stage{position:relative;background:var(--accent);overflow:hidden;min-height:48svh}
.orb{position:absolute;width:118vh;height:118vh;border-radius:50%;overflow:hidden;right:-34vh;top:50%;translate:0 -50%;background:var(--deep)}
.orb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.orb img:nth-child(2){opacity:0;animation:fade2 19.5s infinite}
.orb img:nth-child(3){opacity:0;animation:fade3 19.5s infinite}

@keyframes fade2{0%,28%{opacity:0}36%,62%{opacity:1}70%,100%{opacity:0}}
@keyframes fade3{0%,62%{opacity:0}70%,94%{opacity:1}100%{opacity:0}}
.stage-note{position:absolute;left:0;bottom:0;background:var(--ink);color:#fff;max-width:19ch;padding:16px 20px;font-size:var(--step-lead);font-weight:500;line-height:1.2}
@media (max-width:820px){
  .hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .stage{order:-1;height:48svh}
  .orb{width:96vw;height:96vw;right:-18vw}
  .card{margin-top:-36px;position:relative}
  .stage-note{bottom:36px}
  .band{height:40px}.band i{width:20px;height:20px}
}

/* ── products: square plate, spare text ────────────────── */
.show{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:88svh;background:var(--tone)}
.plate-wrap{display:flex;align-items:center;justify-content:center;padding:40px}
.plate{width:100%;aspect-ratio:1;background:var(--deep);position:relative;max-width:640px}
.plate svg{display:block;width:100%;height:100%}
.plate-read{position:absolute;left:0;right:0;bottom:0;padding:14px 18px;background:var(--ink);color:#fff;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.show-text{display:flex;flex-direction:column;justify-content:space-between;gap:36px;padding:40px clamp(18px,3vw,48px) 0 0}
.tabs{display:flex;flex-wrap:wrap;gap:6px 22px}
.tab{font:inherit;font-weight:500;background:none;border:0;padding:6px 0;color:var(--muted);cursor:pointer}
.tab[aria-selected="true"]{color:var(--ink);text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:.12em}
.prod h2{line-height:1.06}
.prod p.desc{margin-top:22px;max-width:36ch}
.specs{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.specs li{display:flex;gap:.7em;align-items:baseline}
.specs .ball{color:var(--accent);translate:0 -.05em}
.pitch{display:flex;flex-direction:column;gap:10px}
.pitch label{font-weight:500}
.pitch output{font-weight:700;font-variant-numeric:tabular-nums}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:28px;background:none;margin:0}
input[type=range]::-webkit-slider-runnable-track{height:8px;background:var(--tone-2);border-radius:999px}
input[type=range]::-moz-range-track{height:8px;background:var(--tone-2);border-radius:999px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;border-radius:50%;background:var(--accent);margin-top:-10px;cursor:pointer}
input[type=range]::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:50%;background:var(--accent);cursor:pointer}
.fits{min-height:3em}
.cells{display:grid;grid-template-columns:1fr 1fr}
.cell{display:flex;align-items:center;justify-content:center;height:72px;font-weight:500;text-decoration:none;transition:background-color .18s ease}
.cell.a{background:var(--ink);color:#fff}
.cell.a:hover{background:var(--accent)}
.cell.b{background:var(--tone-2)}
.cell.b:hover{background:var(--t5)}
@media (max-width:820px){
  .show{grid-template-columns:minmax(0,1fr);min-height:0}
  .plate-wrap{padding:16px}
  .show-text{padding:8px 16px 0}
  .cells{grid-template-columns:1fr;margin-inline:-16px}
  .cell{height:60px}
}

/* ── how it works: accordion of tinted panels ──────────── */
.how-intro h2{grid-column:1 / 6}
.how-intro p{grid-column:7 / -1;font-size:var(--step-lead);line-height:1.35;align-self:end;max-width:30em}
.acc{display:flex;height:520px;margin-top:64px}
.panel{flex:0 0 10.5%;min-width:0;border:0;padding:0;text-align:left;font:inherit;color:#fff;cursor:pointer;position:relative;overflow:hidden;transition:flex-basis .45s cubic-bezier(.2,.7,.2,1)}
.panel[aria-expanded="true"]{flex:1 1 58%;cursor:default}
.panel:nth-child(1){background:var(--t1)}
.panel:nth-child(2){background:var(--t2)}
.panel:nth-child(3){background:var(--t3)}
.panel:nth-child(4){background:var(--t4);color:var(--ink)}
.panel:nth-child(5){background:var(--t5);color:var(--ink)}
.panel .spine{position:absolute;left:18px;bottom:20px;writing-mode:vertical-rl;rotate:180deg;font-size:var(--step-lead);font-weight:700;white-space:nowrap}
.panel .open{position:absolute;inset:0;padding:28px 32px;display:none;flex-direction:column;justify-content:space-between}
.panel .open b{font-size:var(--step-head);line-height:1.06;letter-spacing:-.02em}
.panel .open span{max-width:36ch}
.panel[aria-expanded="true"] .spine{display:none}
.panel[aria-expanded="true"] .open{display:flex;animation:openin .5s ease .12s both}
@keyframes openin{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@media (max-width:820px){
  .how-intro h2,.how-intro p{grid-column:1 / -1}
  .how-intro p{margin-top:16px}
  .acc{flex-direction:column;height:auto;margin-top:32px}
  .panel{flex:none;min-height:64px}
  .panel[aria-expanded="true"]{flex:none}
  .panel .spine{writing-mode:horizontal-tb;rotate:none;position:static;display:block;padding:20px 18px}
  .panel[aria-expanded="true"] .spine{display:none}
  .panel .open{position:static;display:none;padding:20px 18px;gap:28px}
  .panel[aria-expanded="true"] .open{display:flex}
}

/* ── proof: large marks on tiles ───────────────────────── */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tile{background:var(--tone);aspect-ratio:3 / 2;padding:24px;display:flex;flex-direction:column;gap:10px;min-width:0}
.tile b{font-size:var(--step-lead);line-height:1.15;letter-spacing:-.02em}
.tile.head{grid-column:span 2;aspect-ratio:auto;background:var(--accent);color:#fff;justify-content:space-between}
.tile.head p{max-width:32em}
.tile.dark{background:var(--tone-2)}
@media (max-width:820px){
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .tile{padding:14px;aspect-ratio:auto;min-height:132px;gap:10px}
  .tile b{font-size:var(--step-lead)}
  .tile.head{min-height:120px}
}

/* ── guides: sticky photograph, active list ────────────── */
.guide .photo{grid-column:1 / 6;grid-row:1 / 3;position:sticky;top:12vh;align-self:start;aspect-ratio:4 / 5;width:min(34vw,100%);overflow:hidden;background:var(--tone)}
.guide .photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease}
.guide .photo img.swap{opacity:.15}

.guide .rows{grid-column:7 / -1;grid-row:2}
.guide h2{grid-column:7 / -1;grid-row:1;margin-bottom:48px}
.row{display:block;width:100%;text-align:left;font:inherit;background:none;border:0;padding:0;color:var(--muted);cursor:pointer}
.row .line{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:58px}
.row .name{font-size:var(--step-lead);font-weight:500}
.row .dur{white-space:nowrap}
.row .more{display:none;max-width:34ch;padding-bottom:18px;color:var(--ink)}
.row.on{color:var(--ink)}
.row.on .more{display:block}
@media (max-width:820px){
  .guide .photo{grid-column:1 / -1;grid-row:2;position:relative;top:auto;aspect-ratio:4 / 3;width:100%}
  .guide .rows{grid-column:1 / -1;grid-row:3;margin-top:24px}
  .guide h2{grid-column:1 / -1;grid-row:1;margin-bottom:20px}
}

/* ── about: inset deep panel, shaped portrait ──────────── */
.about{margin-inline:var(--m);background:var(--deep);color:#fff;min-height:104svh;position:relative;overflow:hidden}
.about h2{position:absolute;left:24px;top:48px;max-width:10.2em}
.about .portrait{position:absolute;left:8vw;bottom:-7.6vw;width:38vw;height:38vw;border-radius:50%;overflow:hidden}
.about .portrait img{width:100%;height:100%;object-fit:cover}
.about .blocks{position:absolute;left:50%;top:48px;width:min(30em,44%);display:flex;flex-direction:column;gap:48px}
.about .blocks h3{margin-bottom:10px}
.about .blocks p{line-height:1.55}
.about .blocks dl{margin:0;line-height:1.7}
.about .blocks dt{float:left;width:4.2em;color:var(--t5)}
.about .blocks dd{margin:0 0 0 4.2em}
.about .btn{background:#fff;color:var(--deep);align-self:flex-start}
.about .btn:hover{background:var(--t5)}
@media (max-width:820px){
  .about{margin-inline:var(--m);min-height:0;display:flex;flex-direction:column;gap:28px;padding:28px 18px 0}
  .about h2,.about .blocks,.about .portrait{position:static}
  .about h2{max-width:none}
  .about .blocks{width:100%;gap:28px}
  .about .blocks{order:2}
  .about .portrait{order:3;width:86vw;height:86vw;align-self:center;margin-bottom:-21vw}
}

/* ── faq: tabbed index cards ───────────────────────────── */
.faq h2{grid-column:1 / -1;margin-bottom:56px}
.cards{grid-column:1 / -1;display:flex;flex-direction:column}
.fc{position:relative;margin-top:-18px;padding-top:40px;border:0;background:none;font:inherit;color:inherit;text-align:left}
.fc:first-child{margin-top:0}
.fc .tabname{position:absolute;top:0;height:40px;width:200px;display:flex;align-items:center;padding-left:24px;font-weight:500}
.fc .body{padding:20px 24px 44px;min-height:96px}
.fc .q{display:block;width:100%;text-align:left;font:inherit;font-size:var(--step-lead);font-weight:500;background:none;border:0;padding:0;color:inherit;cursor:pointer}
.fc .a{display:none;margin-top:14px;max-width:50ch}
.fc.on .a{display:block}
.fc:nth-child(3n+1) .tabname,.fc:nth-child(3n+1) .body{background:var(--t5)}
.fc:nth-child(3n+2) .tabname,.fc:nth-child(3n+2) .body{background:var(--tone-2)}
.fc:nth-child(3n) .tabname,.fc:nth-child(3n) .body{background:var(--t4)}
.fc:nth-child(1) .tabname{left:0}.fc:nth-child(2) .tabname{left:150px}.fc:nth-child(3) .tabname{left:300px}
.fc:nth-child(4) .tabname{left:450px}.fc:nth-child(5) .tabname{left:300px}.fc:nth-child(6) .tabname{left:150px}
@media (max-width:820px){
  .faq h2,.cards{grid-column:1 / -1}
  .faq h2{margin-bottom:28px}
  .fc .tabname{width:120px;padding-left:14px}
  .fc:nth-child(1) .tabname{left:0}.fc:nth-child(2) .tabname{left:48px}.fc:nth-child(3) .tabname{left:96px}
  .fc:nth-child(4) .tabname{left:144px}.fc:nth-child(5) .tabname{left:96px}.fc:nth-child(6) .tabname{left:48px}
  .fc .body{padding:18px 20px 40px}

}

/* ── contact: clip-out coupon form ─────────────────────── */
.coupon{grid-column:1 / -1;background:var(--accent);color:#fff;display:grid;grid-template-columns:46% 1fr;position:relative;min-height:440px}
.coupon::before,.coupon::after{content:"";position:absolute;left:46%;width:28px;height:28px;border-radius:50%;background:var(--ground);translate:-50% 0}
.coupon::before{top:-14px}.coupon::after{bottom:-14px}
.coupon .left{padding:48px 24px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.coupon .left p{max-width:26em}
.coupon .right{padding:48px;border-left:5px dotted var(--ground);display:flex;flex-direction:column;gap:10px}
.coupon label.vh{position:absolute;inline-size:0;block-size:0;overflow:hidden;clip-path:inset(50%)}
.coupon input[type=text],.coupon input[type=email],.coupon textarea{font:inherit;color:var(--ink);background:var(--t5);border:0;border-radius:0;height:52px;padding:0 16px;width:100%}
.coupon textarea{height:104px;padding:14px 16px;resize:vertical}
.coupon ::placeholder{color:var(--muted);opacity:1}
.coupon .consent{display:flex;gap:10px;align-items:flex-start;margin:6px 0}
.coupon .consent input{width:18px;height:18px;margin-top:3px;flex:none}
.coupon .submit{font:inherit;font-weight:700;height:56px;border:0;background:var(--ink);color:#fff;cursor:pointer;transition:background-color .18s ease}
.coupon .submit:hover{background:var(--deep)}
.coupon .submit[disabled]{opacity:.6}
.coupon .err{background:#fff;color:var(--ink);padding:12px 16px}
.coupon .done{grid-column:1 / -1;padding:48px;display:flex;flex-direction:column;gap:12px;justify-content:center}
.coupon .chosen{margin:0}
.hp{position:absolute;inline-size:0;block-size:0;overflow:hidden;opacity:0;pointer-events:none}
@media (max-width:820px){
  .coupon{grid-column:1 / -1;grid-template-columns:minmax(0,1fr);min-height:0}
  .coupon::before,.coupon::after{display:none}
  .coupon .left{padding:28px 20px}
  .coupon .right{padding:24px 20px 28px;border-left:0;border-top:5px dotted var(--ground)}
  .coupon input[type=text],.coupon input[type=email]{height:54px}
}

/* ── footer: the mark, built large ─────────────────────── */
footer{margin-top:var(--gap);background:var(--tone);padding:var(--m) 0 28px}
.mark{display:block;width:100%;height:auto}
.foot{margin-top:56px;row-gap:28px}
.foot nav{grid-column:1 / 5;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.foot .addr{grid-column:5 / 9;display:flex;flex-direction:column;gap:6px}
.foot .addr2{grid-column:9 / 13;display:flex;flex-direction:column;gap:6px}
.last{margin-top:44px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.legal{margin-top:24px;padding-top:16px;border-top:1px solid var(--line,#CED8E8);display:flex;flex-wrap:wrap;gap:6px 28px;font-size:var(--step-small)}
.legal span:first-of-type,.legal span:nth-of-type(2){margin-right:auto}
.legal a{text-underline-offset:.2em}
.legal .pp{font-weight:700}
.btn.sm{padding:.75em 1.2em;font-size:var(--step-small)}
@media (max-width:820px){
  .foot nav,.foot .addr,.foot .addr2{grid-column:1 / -1}
}

/* ── guide page ────────────────────────────────────────── */
.gtop{padding-block:20px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.ghead{margin-top:clamp(40px,7vw,96px)}
.ghead h1{grid-column:1 / 9}
.gband{margin:clamp(28px,4vw,56px) 0 0;height:48svh;overflow:hidden}
.gband img{width:100%;height:100%;object-fit:cover}
.ghead p{grid-column:1 / 8;margin-top:20px;font-size:var(--step-lead);line-height:1.35}
.article{margin-top:clamp(72px,9vw,140px)}
.article figure{grid-column:1 / 6;margin:0;aspect-ratio:4 / 5;overflow:hidden;align-self:start;background:var(--tone)}
.article figure img{width:100%;height:100%;object-fit:cover}
.article .txt{grid-column:7 / 12;display:flex;flex-direction:column;gap:18px}
.article p,.article li{max-width:34em}
.article ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.article li{display:flex;gap:.7em;align-items:baseline}
.article li .ball{color:var(--accent)}
.article table{border-collapse:collapse;width:100%}
.article th,.article td{text-align:left;padding:10px 12px 10px 0;border-bottom:1px solid var(--tone-2);vertical-align:top}
.article:nth-of-type(even) figure{grid-column:8 / 13;order:2}
.article:nth-of-type(even) .txt{grid-column:1 / 7}
@media (max-width:820px){
  .ghead h1,.ghead p,.article figure,.article .txt,.article:nth-of-type(even) figure,.article:nth-of-type(even) .txt{grid-column:1 / -1}
  .article figure{aspect-ratio:4 / 3;margin-bottom:20px;order:0}
}

/* ── motion ────────────────────────────────────────────── */
.js .rv{opacity:0;translate:0 24px;transition:opacity .6s ease,translate .6s cubic-bezier(.2,.7,.2,1)}
.js .rv.in{opacity:1;translate:0 0}
.js .rv.d1{transition-delay:.07s}.js .rv.d2{transition-delay:.14s}.js .rv.d3{transition-delay:.21s}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .orb img:nth-child(n+2){animation:none}

  .js .rv{opacity:1;translate:none;transition:none}
  .panel,.btn,.cell{transition:none}
  .panel[aria-expanded="true"] .open{animation:none}
}

/* partner site (2026-11-14): on phones every article shows its picture first; row headers keep whole words */
@media (max-width:820px){.article:nth-of-type(even) figure{order:0}}
.article tbody th{min-width:4.8em;overflow-wrap:normal}
