/* =========================================================
   KUMAKOMOYO PDF SOLUTION — styles
   Shares the Kumakomoyo brand system (maroon / gold / sunrise)
   ========================================================= */
:root{
  --maroon:        #7A0022;
  --maroon-light:  #9C1233;
  --maroon-mid:    #5C0018;
  --maroon-dark:   #3D0012;
  --maroon-darker: #240009;
  --ink:           #1C1013;
  --ink-soft:      #4A3A3E;
  --gold:          #F0A050;
  --gold-light:    #FBC888;
  --orange:        #E8612A;
  --cream:         #FBF7F2;
  --cream-2:       #F4ECE4;
  --line:          #E8DAD1;
  --white:         #FFFFFF;
  --green:         #1E8E5A;
  --red:           #C4372B;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 10px rgba(36,0,9,.06);
  --shadow-md: 0 12px 32px rgba(36,0,9,.10);
  --shadow-lg: 0 24px 60px rgba(36,0,9,.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.16,.84,.44,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--font-body); color:var(--ink); background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.15; letter-spacing:-.01em; }
p{ margin:0; }
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .container{ padding:0 18px; } }

/* --- Header --- */
.pdf-header{
  position:sticky; top:0; z-index:500; background:rgba(251,247,242,.92); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line); padding:14px 0;
}
.pdf-header .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.pdf-brand{ display:flex; align-items:center; gap:12px; }
.pdf-brand img{ width:40px; height:40px; border-radius:10px; object-fit:cover; }
.pdf-brand .txt strong{ display:block; font-family:var(--font-display); font-size:1rem; color:var(--maroon-darker); }
.pdf-brand .txt span{ font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); }
.pdf-header .back{
  font-size:.85rem; font-weight:600; color:var(--maroon); display:flex; align-items:center; gap:6px;
}
.privacy-pill{
  display:flex; align-items:center; gap:8px; font-size:.78rem; font-weight:600; color:var(--green);
  background:rgba(30,142,90,.09); padding:8px 14px; border-radius:999px;
}
.privacy-pill svg{ width:15px; height:15px; }
@media (max-width:760px){ .privacy-pill span.long{ display:none; } }

/* --- Hero --- */
.pdf-hero{ padding:64px 0 40px; text-align:center; }
.pdf-hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-size:.78rem;
  font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--maroon);
}
.pdf-hero h1{ font-size:clamp(1.9rem,4vw,2.7rem); margin-top:14px; color:var(--maroon-darker); }
.pdf-hero h1 span{ background:linear-gradient(120deg,var(--gold),var(--orange)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pdf-hero p{ max-width:600px; margin:16px auto 0; color:var(--ink-soft); font-size:1.02rem; line-height:1.7; }

/* --- Tool grid --- */
.tool-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:18px; padding:20px 0 70px;
}
@media (max-width:1000px){ .tool-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .tool-grid{ grid-template-columns:repeat(2,1fr); gap:12px;} }

.tool-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:26px 18px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tool-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:transparent; }
.tool-card .ic{
  width:54px; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--maroon),var(--maroon-mid));
}
.tool-card .ic svg{ width:26px; height:26px; color:var(--gold-light); }
.tool-card strong{ font-family:var(--font-display); font-size:.92rem; color:var(--maroon-darker); }
.tool-card span{ font-size:.76rem; color:var(--ink-soft); line-height:1.4; }
.tool-card.soon{ opacity:.55; cursor:not-allowed; }
.tool-card.soon:hover{ transform:none; box-shadow:none; border-color:var(--line); }
.tool-card .badge-soon{
  font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--orange);
  background:rgba(232,97,42,.1); padding:3px 8px; border-radius:999px;
}

/* --- Workspace (modal-like panel) --- */
.workspace-overlay{
  position:fixed; inset:0; background:rgba(36,0,9,.55); z-index:900; display:none;
  align-items:flex-start; justify-content:center; padding:40px 20px; overflow-y:auto;
}
.workspace-overlay.open{ display:flex; }
.workspace{
  background:var(--cream); border-radius:var(--radius-lg); max-width:880px; width:100%;
  box-shadow:var(--shadow-lg); overflow:hidden; margin-bottom:40px;
}
.ws-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 28px;
  background:var(--maroon-darker); color:#fff;
}
.ws-head .ttl{ display:flex; align-items:center; gap:14px; }
.ws-head .ic{ width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; }
.ws-head .ic svg{ width:20px; height:20px; color:var(--gold-light); }
.ws-head h3{ font-size:1.1rem; }
.ws-head span{ font-size:.78rem; color:rgba(255,255,255,.6); }
.ws-close{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#fff; border:none; }
.ws-close:hover{ background:rgba(255,255,255,.22); }
.ws-body{ padding:28px; }

/* Dropzone */
.dropzone{
  border:2px dashed var(--line); border-radius:var(--radius-md); padding:44px 20px; text-align:center;
  background:var(--white); transition:.3s; cursor:pointer;
}
.dropzone.drag{ border-color:var(--maroon); background:rgba(122,0,34,.04); }
.dropzone .ic{
  width:56px; height:56px; margin:0 auto 14px; border-radius:50%; background:var(--cream-2);
  display:flex; align-items:center; justify-content:center;
}
.dropzone .ic svg{ width:26px; height:26px; color:var(--maroon); }
.dropzone strong{ display:block; font-family:var(--font-display); font-size:1rem; color:var(--maroon-darker); margin-bottom:6px; }
.dropzone span{ font-size:.85rem; color:var(--ink-soft); }
.dropzone input{ display:none; }

/* File list */
.file-list{ margin-top:20px; display:flex; flex-direction:column; gap:10px; }
.file-row{
  display:flex; align-items:center; gap:14px; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:12px 14px;
}
.file-row .thumb{
  width:44px; height:56px; border-radius:6px; background:var(--cream-2); flex:none; display:flex;
  align-items:center; justify-content:center; overflow:hidden; border:1px solid var(--line);
}
.file-row .thumb img{ width:100%; height:100%; object-fit:cover; }
.file-row .thumb svg{ width:20px; height:20px; color:var(--maroon); }
.file-row .meta{ flex:1; min-width:0; }
.file-row .meta strong{ display:block; font-size:.87rem; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-row .meta span{ font-size:.76rem; color:var(--ink-soft); }
.file-row .actions{ display:flex; gap:6px; align-items:center; }
.icon-btn{
  width:32px; height:32px; border-radius:8px; border:1px solid var(--line); background:var(--white);
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft); transition:.2s;
}
.icon-btn:hover{ background:var(--maroon); border-color:var(--maroon); color:#fff; }
.icon-btn svg{ width:15px; height:15px; }

/* Page grid (organize/split) */
.page-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:14px; margin-top:20px; }
.page-thumb{
  position:relative; background:var(--white); border:2px solid var(--line); border-radius:10px; overflow:hidden;
  cursor:grab; transition:.2s;
}
.page-thumb.selected{ border-color:var(--maroon); box-shadow:0 0 0 3px rgba(122,0,34,.15); }
.page-thumb img{ width:100%; display:block; }
.page-thumb img{ position:relative; z-index:1; }
.page-thumb .num{
  position:absolute; top:6px; left:6px; background:rgba(36,0,9,.75); color:#fff; font-size:.68rem;
  padding:2px 7px; border-radius:999px; font-family:var(--font-display); z-index:3; pointer-events:none;
}
.page-thumb .pt-actions{ position:absolute; top:6px; right:6px; display:flex; gap:4px; z-index:3; }
.page-thumb .pt-actions button{
  width:22px; height:22px; border-radius:6px; background:rgba(255,255,255,.92); border:none;
  display:flex; align-items:center; justify-content:center; position:relative; z-index:3;
}
.page-thumb .pt-actions button svg{ width:12px; height:12px; color:var(--maroon-darker); }
.page-thumb.removed{ opacity:.3; }

/* Options */
.opt-group{ margin-top:22px; }
.opt-group label.title{ display:block; font-size:.85rem; font-weight:700; color:var(--maroon-darker); margin-bottom:10px; }
.opt-row{ display:flex; gap:10px; flex-wrap:wrap; }
.opt-chip{
  padding:9px 16px; border-radius:999px; border:1px solid var(--line); background:var(--white);
  font-size:.83rem; font-weight:600; color:var(--ink-soft); transition:.2s;
}
.opt-chip.active{ background:var(--maroon); border-color:var(--maroon); color:#fff; }
.field-inline{ display:flex; flex-direction:column; gap:6px; margin-top:14px; }
.field-inline label{ font-size:.82rem; font-weight:600; color:var(--maroon-darker); }
.field-inline input[type="text"], .field-inline input[type="number"], .field-inline select{
  padding:11px 14px; border-radius:10px; border:1px solid var(--line); background:var(--white); font-family:inherit; font-size:.9rem;
}
.field-inline input[type="range"]{ width:100%; }
.checkbox-row{ display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--ink-soft); margin-top:10px; }

/* Actions / progress / result */
.ws-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; align-items:center; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:14px 26px; border-radius:999px;
  font-family:var(--font-display); font-weight:600; font-size:.92rem; border:1px solid transparent; transition:.3s var(--ease);
}
.btn svg{ width:16px; height:16px; }
.btn-primary{ background:linear-gradient(135deg,var(--gold),var(--orange)); color:var(--maroon-darker); box-shadow:0 8px 22px rgba(232,97,42,.32); }
.btn-primary:hover{ transform:translateY(-2px); }
.btn-primary:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-outline{ background:transparent; border-color:rgba(122,0,34,.3); color:var(--maroon); }
.btn-outline:hover{ background:rgba(122,0,34,.05); }
.btn-sm{ padding:10px 18px; font-size:.82rem; }

.progress-wrap{ margin-top:20px; display:none; }
.progress-wrap.show{ display:block; }
.progress-track{ height:8px; border-radius:999px; background:var(--line); overflow:hidden; }
.progress-bar{ height:100%; width:0%; background:linear-gradient(90deg,var(--gold),var(--orange)); transition:width .3s; }
.progress-label{ font-size:.8rem; color:var(--ink-soft); margin-top:8px; }

.result-card{
  margin-top:22px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:22px; display:none; align-items:center; gap:16px; justify-content:space-between; flex-wrap:wrap;
}
.result-card.show{ display:flex; }
.result-card .left{ display:flex; align-items:center; gap:14px; }
.result-card .ic{ width:44px; height:44px; border-radius:12px; background:rgba(30,142,90,.12); display:flex; align-items:center; justify-content:center; }
.result-card .ic svg{ width:22px; height:22px; color:var(--green); }
.result-card strong{ display:block; font-size:.92rem; color:var(--maroon-darker); }
.result-card span{ font-size:.78rem; color:var(--ink-soft); }

.error-msg{
  margin-top:16px; background:rgba(196,55,43,.08); border:1px solid rgba(196,55,43,.25); color:var(--red);
  padding:12px 16px; border-radius:10px; font-size:.85rem; display:none;
}
.error-msg.show{ display:block; }

/* Footer note */
.pdf-footer{ text-align:center; padding:50px 0 70px; color:var(--ink-soft); font-size:.85rem; }
.pdf-footer a{ color:var(--maroon); font-weight:600; }

/* =========================================================
   FEATURED CARD — CV Maker
   ========================================================= */
.tool-card.featured{
  position:relative; grid-column:span 2; background:linear-gradient(135deg,var(--maroon-darker),var(--maroon-dark) 55%,var(--maroon-mid));
  border:1px solid rgba(240,160,80,.4); overflow:hidden; flex-direction:row; text-align:left;
  align-items:center; gap:18px; padding:26px 24px;
}
.tool-card.featured::before{
  content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 20%, rgba(240,160,80,.35), transparent 60%);
  animation:glowMove 4s ease-in-out infinite;
}
@keyframes glowMove{ 0%,100%{ opacity:.6; } 50%{ opacity:1; } }
.tool-card.featured .ic{
  background:linear-gradient(135deg,var(--gold),var(--orange)); position:relative; z-index:1; flex:none;
  width:58px; height:58px;
}
.tool-card.featured .ic svg{ color:var(--maroon-darker); }
.tool-card.featured .txt{ position:relative; z-index:1; }
.tool-card.featured strong{ color:#fff; font-size:1.02rem; display:flex; align-items:center; gap:8px; }
.tool-card.featured span{ color:rgba(255,255,255,.75); }
.tool-card.featured .badge-new{
  display:inline-flex; align-items:center; gap:5px; font-size:.66rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--maroon-darker); background:linear-gradient(135deg,var(--gold-light),var(--gold));
  padding:4px 10px; border-radius:999px; animation:badgePulse 1.8s ease-in-out infinite;
}
@keyframes badgePulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }
.tool-card.featured:hover{ transform:translateY(-5px) scale(1.01); box-shadow:0 20px 50px rgba(122,0,34,.35); }
@media (max-width:640px){ .tool-card.featured{ grid-column:span 2; } }

/* =========================================================
   ATTENTION TOAST (CV Maker callout)
   ========================================================= */
.cv-toast{
  position:fixed; right:22px; bottom:22px; z-index:800; max-width:300px;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-lg);
  padding:18px 18px 18px 16px; display:flex; gap:12px; align-items:flex-start;
  transform:translateY(140%); opacity:0; transition:transform .55s var(--ease), opacity .55s var(--ease);
}
.cv-toast.show{ transform:translateY(0); opacity:1; }
.cv-toast .bar{ width:4px; align-self:stretch; border-radius:4px; background:linear-gradient(180deg,var(--gold),var(--orange)); flex:none; }
.cv-toast strong{ display:block; font-family:var(--font-display); font-size:.9rem; color:var(--maroon-darker); margin-bottom:4px; }
.cv-toast p{ font-size:.8rem; color:var(--ink-soft); line-height:1.5; margin:0 0 10px; }
.cv-toast a.btn{ padding:9px 16px; font-size:.78rem; }
.cv-toast .toast-close{
  position:absolute; top:8px; right:10px; border:none; background:none; color:var(--ink-soft); font-size:1rem; line-height:1; cursor:pointer;
}
@media (max-width:520px){ .cv-toast{ left:16px; right:16px; max-width:none; } }

/* =========================================================
   ABOUT SECTION (condensed)
   ========================================================= */
.pdf-about{ padding:90px 0; background:var(--cream-2); }
.about-flex{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-flex .eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-size:.78rem;
  font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--maroon);
}
.about-flex h2{ font-size:clamp(1.6rem,3vw,2.2rem); margin-top:12px; color:var(--maroon-darker); }
.about-flex p{ margin-top:16px; color:var(--ink-soft); line-height:1.75; font-size:.98rem; }
.about-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:10px; }
.about-stats div{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md); padding:20px; text-align:center; }
.about-stats b{ display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--maroon); }
.about-stats span{ font-size:.76rem; color:var(--ink-soft); }
.about-flex .btn{ margin-top:22px; }
@media (max-width:900px){ .about-flex{ grid-template-columns:1fr; } }

/* =========================================================
   FULL FOOTER
   ========================================================= */
.site-footer{ background:var(--maroon-darker); color:rgba(255,255,255,.8); padding-top:70px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .pdf-brand img{ width:40px; height:40px; }
.footer-brand .pdf-brand .txt strong{ color:#fff; }
.footer-brand .pdf-brand .txt span{ color:rgba(255,255,255,.55); }
.footer-brand p{ font-size:.86rem; line-height:1.7; color:rgba(255,255,255,.6); max-width:280px; margin-top:16px; }
.footer-col h4{ font-family:var(--font-display); font-size:.9rem; color:#fff; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ font-size:.86rem; color:rgba(255,255,255,.62); transition:.25s; }
.footer-col ul li a:hover{ color:var(--gold-light); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:24px 0; flex-wrap:wrap; gap:10px; font-size:.78rem; color:rgba(255,255,255,.5); }
.footer-bottom a{ color:rgba(255,255,255,.5); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

@media (max-width:640px){
  .ws-body{ padding:20px; }
  .ws-head{ padding:18px 20px; }
  .workspace-overlay{ padding:0; }
  .workspace{ border-radius:0; min-height:100vh; }
}
