/* PIKNIDO COMMON CSS: Resets, global layout, typography, buttons, forms, cards, navigation, dialogs. */
@import url('/tokens.css');
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;font:15px/1.65 var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
body::before{content:'';position:fixed;inset:0 0 auto;height:600px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 55% 48% at 23% 0%,rgba(78,100,203,.2),transparent),radial-gradient(ellipse 42% 60% at 89% 0%,rgba(46,140,167,.09),transparent)}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--mint);outline-offset:3px}img,svg{max-width:100%}p,h1,h2,h3,h4{margin:0}p{line-height:1.8}h1,h2,h3,h4{line-height:1.32;letter-spacing:-.045em}h1{font-size:clamp(38px,5vw,68px)}h2{font-size:clamp(26px,3vw,36px)}h3{font-size:18px}ul{padding-left:21px}li+li{margin-top:7px}::selection{background:rgba(127,153,255,.35)}
.container{max-width:var(--wrap);padding-inline:28px;margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{position:sticky;top:0;z-index:60;border-bottom:1px solid var(--stroke);background:rgba(7,12,24,.85);backdrop-filter:blur(22px)}.header-inner{min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:12px;font-size:21px;font-weight:900;letter-spacing:-.035em}.brand-mark{width:35px;height:35px;border-radius:11px;background:linear-gradient(143deg,#879aff 0%,#5d7af0 65%,#52d9be 140%);display:grid;place-items:center;font-weight:1000;font-size:23px;color:#fff;box-shadow:0 8px 24px #6074ff30}.gnb{display:flex;align-items:center;gap:27px}.gnb a{color:var(--ink-muted);font-size:13px;font-weight:650;white-space:nowrap}.gnb a.active,.gnb a:hover{color:var(--ink)}.header-actions{display:flex;gap:11px;align-items:center}.user-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:800}.mobile-menu{display:none}.mobile-panel{display:none}
.btn{appearance:none;border:1px solid var(--stroke-strong);background:transparent;color:var(--ink);border-radius:var(--radius-sm);padding:10px 17px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;transition:transform .16s,background .16s,border .16s;white-space:nowrap;min-height:42px}.btn:hover:not(:disabled){background:var(--surface-hover);transform:translateY(-1px)}.btn-primary{color:#081020;border-color:transparent;background:linear-gradient(115deg,#9aafff,#70e0ce);box-shadow:0 8px 30px rgba(85,151,247,.19)}.btn-primary:hover:not(:disabled){background:linear-gradient(115deg,#b3c0ff,#86e8d8)}.btn-light{background:var(--surface-raised)}.btn-danger{color:var(--danger);border-color:rgba(255,134,150,.35)}.btn-sm{padding:7px 13px;min-height:35px;font-size:13px}.btn-wide{width:100%}.text-link{color:var(--accent);font-weight:650}.icon-button{background:transparent;border:1px solid var(--stroke);border-radius:10px;color:var(--ink);padding:6px 10px;font-size:19px}
.page{min-height:calc(100dvh - 320px)}.section{padding:64px 0}.section-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow,.overline{color:var(--mint);font-weight:800;letter-spacing:.15em;text-transform:uppercase;font-size:11px}.section-subtitle,.muted{color:var(--ink-muted)}.muted-small{font-size:13px;color:var(--ink-muted)}.chip{display:inline-flex;align-items:center;gap:7px;background:var(--accent-soft);border:1px solid rgba(147,164,255,.19);padding:6px 12px;border-radius:99px;color:#afbdff;font-size:12px;font-weight:700}.badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--stroke);border-radius:50px;font-size:11px;font-weight:700;color:var(--ink-muted);padding:5px 9px}.badge::before{content:'';width:6px;height:6px;border-radius:100%;background:var(--warn)}
.panel,.card{background:linear-gradient(165deg,rgba(21,31,50,.87),rgba(13,21,35,.95));border:1px solid var(--stroke);border-radius:var(--radius-lg)}.panel{padding:28px}.card{padding:25px}.card:hover{border-color:rgba(145,165,237,.42)}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card-body{display:flex;flex-direction:column;height:100%}.card-icon{width:51px;height:51px;display:grid;place-items:center;border:1px solid rgba(150,170,250,.15);border-radius:15px;background:var(--accent-soft);color:#adbbff}.card-icon svg{width:26px;height:26px}.card-category{font-size:11px;color:var(--mint);font-weight:800}.card h3{margin-top:15px}.card-en{font-size:12px;color:var(--ink-faint);margin-top:4px}.card-description{color:var(--ink-muted);font-size:13px;margin:15px 0 24px;flex:1}.card-footer{padding-top:17px;border-top:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between}.card-action{font-weight:750;color:#c6d1ff;font-size:13px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-weight:700;font-size:13px}.input,textarea.input,select.input{border:1px solid var(--stroke-strong);border-radius:var(--radius-sm);background:var(--surface);padding:12px 13px;color:var(--ink);width:100%;min-height:46px}.input::placeholder{color:var(--ink-faint)}.input:disabled{opacity:.5}.auth-shell{max-width:468px;margin:58px auto 88px}.auth-card{padding:35px}.auth-title{margin:10px 0 8px}.auth-links{display:flex;justify-content:space-between;gap:10px;font-size:13px}.divider-text{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--ink-faint);font-size:12px}.divider-text::before,.divider-text::after{content:'';height:1px;flex:1;background:var(--stroke)}.alert{padding:13px 16px;border:1px solid var(--stroke-strong);border-radius:12px;background:var(--surface-raised);color:var(--ink-muted);font-size:13px}.alert-warn{border-color:rgba(244,196,123,.28);background:rgba(244,196,123,.07)}.alert-danger{border-color:rgba(255,134,150,.32);background:rgba(255,134,150,.07)}.check-row{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--ink-muted);margin:15px 0}.check-row input{margin-top:5px;accent-color:var(--accent)}
.site-footer{margin-top:80px;border-top:1px solid var(--stroke);padding:55px 0 26px;background:#090f1b}.footer-grid{display:grid;grid-template-columns:2.1fr repeat(3,1fr);gap:34px}.footer-title{color:var(--ink);font-weight:750;font-size:12px;margin-bottom:14px}.footer-column{display:flex;flex-direction:column;gap:9px}.footer-column a{color:var(--ink-muted);font-size:13px}.footer-bottom{border-top:1px solid var(--stroke);margin-top:42px;padding-top:20px;display:flex;justify-content:space-between;color:var(--ink-faint);font-size:12px;gap:15px}
.modal{position:fixed;margin:auto;padding:0;max-width:440px;width:calc(100% - 32px);background:#172138;border:1px solid var(--stroke-strong);border-radius:24px;color:var(--ink);box-shadow:0 38px 110px #000b}.modal::backdrop{background:rgba(0,4,11,.7);backdrop-filter:blur(6px)}.modal-body{padding:38px;text-align:center;position:relative}.modal-close{position:absolute;right:17px;top:17px}.modal-symbol{margin:0 auto 15px;width:66px;height:66px;display:grid;place-items:center;border-radius:19px;background:var(--accent-soft);color:#a5b6ff;font-size:31px}.modal h2{font-size:27px;margin:8px 0 8px}.modal p:not(.overline){color:var(--ink-muted);font-size:14px;margin-bottom:23px}.toast{position:fixed;bottom:24px;right:24px;padding:13px 20px;background:#23324d;color:#fff;border:1px solid var(--stroke-strong);border-radius:13px;box-shadow:var(--shadow);z-index:150;max-width:min(400px,90vw)}.toast[hidden]{display:none}
@media(max-width:1000px){.gnb{gap:16px}.header-actions .btn-sm{padding:7px 10px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.container{padding-inline:19px}.header-inner{min-height:68px}.gnb,.header-actions{display:none}.mobile-menu{display:inline-flex}.mobile-panel{display:block;padding:5px 0 18px}.mobile-panel[hidden]{display:none}.mobile-panel a{display:block;padding:12px 10px;border-bottom:1px solid var(--stroke);font-weight:650;font-size:14px}.card-grid{grid-template-columns:1fr}.section{padding:45px 0}.section-header{align-items:start;flex-direction:column;gap:8px}.card{padding:21px}.footer-grid{grid-template-columns:1fr 1fr;gap:32px 15px}.footer-bottom{flex-direction:column}.auth-shell{margin:30px auto}.auth-card{padding:24px}.modal-body{padding:32px 20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}


/* Responsive typography & navigation — global rules shared by all views.
   Keep Korean words intact where practical; break only at word boundaries. */
h1,h2,h3,h4,.page-hero h1,.faq-list summary{word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
p,.card-description,.alert,.notice-ribbon,.flow-step,.footer-column{word-break:keep-all;overflow-wrap:break-word}
.btn{max-width:100%;white-space:normal;text-align:center;word-break:keep-all;overflow-wrap:break-word}
.card-footer{gap:12px;flex-wrap:wrap}
.card-footer .tool-cta{min-width:0;flex:1}
.section-header>div,.panel,.card,.flow-step,.footer-grid>div{min-width:0}
@media(max-width:1080px){
  .gnb,.header-actions{display:none}
  .mobile-menu{display:inline-flex}
  .mobile-panel{display:block;padding:5px 0 18px}
  .mobile-panel[hidden]{display:none}
  .mobile-panel a{display:block;padding:12px 10px;border-bottom:1px solid var(--stroke);font-weight:650;font-size:14px}
}
@media(max-width:480px){
  .data-row{flex-direction:column;align-items:flex-start;gap:5px}
  .data-row .value{max-width:100%}
  .site-footer .footer-grid{grid-template-columns:1fr 1fr}
  .footer-bottom{gap:7px}
}


/* Signup-only feedback stays inside the auth panel, including when the form is scrolled. */
.signup-inline-toast{
 position:sticky;top:88px;z-index:8;
 margin:14px 0 -49px;padding:13px 16px;
 border-radius:12px;border:1px solid rgba(138,176,249,.55);
 background:#263754;color:#fff;
 box-shadow:0 12px 35px rgba(0,0,0,.4);
 font-size:13px;font-weight:650;line-height:1.5;
 pointer-events:none;
}
.signup-inline-toast[hidden]{display:none}


/* PIKNIDO authentication and signup policy UX */
.legal-inline-link{
 appearance:none;border:0;background:transparent;padding:0;
 color:var(--accent);font:inherit;font-weight:650;cursor:pointer;
 text-decoration:underline;text-underline-offset:3px;
}
.legal-inline-link:hover{color:var(--ink)}
.legal-inline-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.legal-preview-modal{max-width:780px;max-height:min(90vh,900px)}
.legal-preview-body{padding:30px 34px;text-align:left;display:flex;flex-direction:column;max-height:85vh;min-height:240px}
.legal-preview-body h2{font-size:25px;margin:6px 42px 18px 0}
.legal-preview-content{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 10px 0;line-height:1.7;font-size:13px;color:var(--ink-muted)}
.legal-preview-content h2{font-size:18px;color:var(--ink);margin:20px 0 8px}
.legal-preview-content p{margin:8px 0}
.legal-preview-done{margin-top:20px;align-self:flex-end}
.header-actions>.btn-sm{box-sizing:border-box;height:42px;min-height:42px}
.header-actions .user-dot{width:24px;height:24px;min-width:24px;font-size:12px}
#auth-reset-form[hidden],#auth-action-login[hidden]{display:none}
#auth-reset-form{display:flex;flex-direction:column;gap:12px;text-align:left;margin:10px 0 18px}
#auth-reset-form label{font-size:13px;font-weight:700}
@media(max-width:760px){
 .legal-preview-body{padding:25px 20px;max-height:88vh}
 .legal-preview-content{font-size:12px}
 .signup-inline-toast{top:72px}
}


/* Email-password account security section, scoped to account settings. */
.account-password-section{
 margin-top:28px;
 padding-top:26px;
 border-top:1px solid var(--stroke);
}
.account-password-section h3{margin-bottom:6px}
.account-password-section form{max-width:480px;margin-top:18px}
.account-password-section #password-change-status{margin:0 0 16px}
.account-password-section #password-change-status[hidden]{display:none}
