/* Duckcube: warm paper, sunshine yellow and navy. QR artwork keeps user colors. */
:root{--duck-ink:#0b1830;--duck-yellow:#ffd400;--duck-paper:#fffcf3;--duck-muted:#5d6571;color:var(--duck-ink);background:var(--duck-paper)}
body{position:relative;isolation:isolate;background:transparent}
body::before,body::after{content:"";position:absolute;z-index:-1;pointer-events:none;background:var(--duck-yellow)}
body::before{top:0;inset-inline-end:0;width:36%;height:290px;border-end-start-radius:85% 65%;clip-path:ellipse(94% 75% at 100% 0)}
body::after{bottom:0;inset-inline:0;height:160px;border-radius:65% 45% 0 0 / 65% 40% 0 0;opacity:.9}
.top{position:relative;z-index:5;background:transparent;border:0}
.topin{height:96px;gap:20px;padding-inline:28px}
.brand{flex:none;gap:9px;color:var(--duck-ink);font:900 34px/1 "Nunito","Trebuchet MS",sans-serif;letter-spacing:-1.4px}
.brand-logo{width:53px;height:58px;max-width:none;object-fit:contain}
.nav{gap:26px;color:var(--duck-ink)}
.nav-links{display:flex;gap:26px;align-items:center}
.nav-links a{font-size:16px;font-weight:650;text-decoration:none;text-underline-offset:5px}
.nav-links a:hover{text-decoration:underline;text-decoration-color:#b98c00}
.nav .language-picker select{background:#fffef9;border-color:#eee5ca;color:var(--duck-ink);box-shadow:0 3px 10px #6b510008}
.nav .language-picker select:hover{background:#fff8d9;border-color:#b98c00}
.nav .language-picker select:focus-visible,.custom summary:focus-visible{outline:3px solid #c08f00;outline-offset:3px}
.language-code,.menu-toggle{display:none}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:24px;text-align:start;padding:20px 54px 32px}
.hero-copy{min-width:0}
.hero h1{font-size:clamp(40px,4.7vw,62px);line-height:1.08;letter-spacing:-2px;color:var(--duck-ink)}
.hero h1 span{position:relative;display:table;color:inherit}
.hero h1 span::after{content:"";position:absolute;inset-inline:5%;bottom:-8px;height:7px;background:var(--duck-yellow);border-radius:50%;transform:rotate(-1.5deg)}
.hero-badge-row{justify-content:flex-start;margin-top:24px}
.hero-badge-row .free{background:var(--duck-yellow);color:var(--duck-ink);font-size:16px;padding:9px 18px;gap:10px;box-shadow:none}
.free-gift svg,.free-gift svg *{color:var(--duck-ink);stroke:var(--duck-ink)}
.free-rule{background:#b59900;height:20px;opacity:.35}
.free-rays{display:none}
.hero p{color:var(--duck-muted);font-size:16px;line-height:1.5;margin-top:14px}
.hero-art{position:relative;min-width:0;align-self:center}
.hero-art::before{content:"";position:absolute;inset:15% 0 -2%;z-index:-1;background:#fff0a5;border-radius:45% 55% 44% 56%;transform:rotate(-12deg)}
.hero-art img{display:block;width:100%;height:auto;object-fit:contain}
.main{gap:20px;padding-bottom:22px}
.card{border:1px solid #f2ede1;border-radius:24px;box-shadow:0 10px 32px #8c670008}
.card h2{color:var(--duck-ink);font-family:"Nunito",ui-sans-serif,system-ui,sans-serif;font-weight:900}
.type{color:var(--duck-ink);border-color:#e7e5df;border-radius:14px;font-weight:650;background:#fff}
.type.active{background:var(--duck-yellow);border:2px solid var(--duck-yellow);color:var(--duck-ink);font-weight:800}
.type:hover:not(.active){background:#fffbee;border-color:#d8bf67}
.field input,.field textarea,.field select{border-color:#deded8;color:var(--duck-ink);border-radius:12px}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#b88d00;box-shadow:0 0 0 3px #ffd40033}
.qrbox{background:#fffbed;border-color:#f3eddb;border-radius:17px}
.placeholder{color:#8a887f}.placeholder strong{color:#646969}.placeholder svg g:last-child{fill:#fffbed}
.uri{background:#faf8f0;color:#525c69}
.download{background:var(--duck-yellow);color:var(--duck-ink);border-radius:14px;min-height:66px}
.download:hover:not(:disabled){background:#efc500}
.download:disabled{opacity:.5}
.download-main{font-size:16px;font-weight:800}.download-sub{font-size:13px;opacity:1;font-weight:500}
.extra{color:var(--duck-muted)}
.formats button{background:#fcfbf7;border-color:#e8e5dc;color:#303a49;border-radius:12px;min-height:60px}
.formats button:hover:not(:disabled){background:#fff6cb;border-color:#dfc45b}
.formats button:disabled{background:#fcfbf7;color:#8c918f}
.formats button small{color:#687079}
.custom{border-color:#f2e6b4;border-radius:18px;box-shadow:none;background:#fff}
.custom summary{background:#fff6ce;color:var(--duck-ink)}
.custom summary:hover{background:#fff0ac}
.custom-icon{background:var(--duck-yellow);border:0;color:#26303b;border-radius:50%}
.custom-arrow{background:#fffdf3;border-color:#f1e8c7;color:var(--duck-ink);border-radius:50%}
.custom[open] summary{border-color:#f1e8c7}
.custom .controls{background:#fff}
.custom summary .custom-title small,.control-heading>span,.colorpick small{color:var(--duck-muted)}
.control-group+.control-group{border-color:#eee9dc}
.qr-color-choice{border-color:#e5e1d7;color:#303a49}
.qr-color-choice.on{background:#fff8d9;border-color:#d5ac00;color:var(--duck-ink)}
.qr-color-choice:hover{background:#fffbee}
.colorpick,.secondary{border-color:#e5e1d7;color:var(--duck-ink)}
.reset-design{color:#776000;min-height:44px}
.design-tip{background:#fff9e0;border-color:#f4e9b7;color:#68571f}
.benefits{background:#fff;border-color:#f0eadb;border-radius:20px;padding:22px;margin-bottom:18px;gap:16px}
.benefit .ico{background:#fff7ce;color:#987800;font-size:25px;flex-shrink:0}
.benefit strong{color:var(--duck-ink)}.benefit small{color:var(--duck-muted)}
.footer{color:#465060;padding-bottom:36px}
@media(max-width:1000px) and (min-width:761px){
  .topin{padding-inline:22px;gap:16px}.brand{font-size:28px}.brand-logo{width:44px;height:48px}
  .nav,.nav-links{gap:18px}.nav-links a{font-size:14px}.language-picker{width:145px}
  .hero{padding-inline:32px;grid-template-columns:minmax(0,1fr) 240px}
  .types{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  body::before{width:45%;height:190px}body::after{height:115px}
  .topin{height:76px;padding-inline:14px;gap:8px}
  .brand{gap:5px;font-size:23px;letter-spacing:-1px}.brand-logo{width:34px;height:40px;max-width:none}
  .nav{gap:6px}.language-picker{width:82px}
  .nav .language-picker select{color:transparent;min-height:44px;padding-inline:35px 20px;border-radius:15px}
  .nav .language-picker select option{color:var(--duck-ink)}
  .language-flag{left:9px;width:18px;height:13px}.language-chevron{right:7px;width:13px}
  .language-code{display:block;position:absolute;left:35px;top:50%;transform:translateY(-50%);font-size:14px;font-weight:750;pointer-events:none;z-index:1;color:var(--duck-ink)}
  .menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #eee5ca;border-radius:15px;background:#fffef9;color:var(--duck-ink)}
  .nav-links{display:none;position:absolute;inset-inline-end:14px;top:68px;width:min(300px,calc(100% - 28px));padding:9px;background:#fffef9;border:1px solid #eee5ca;border-radius:17px;box-shadow:0 12px 30px #29210f16}
  .nav-links.is-open{display:flex;flex-direction:column;align-items:stretch;gap:3px}
  .nav .nav-links a{display:block;padding:13px 15px;border-radius:10px;min-height:46px;font-size:16px;overflow-wrap:anywhere}
  .nav .nav-links a:hover{background:#fff6ce}
  .hero{position:relative;grid-template-columns:minmax(0,1fr) minmax(88px,29%);gap:12px;padding:14px 18px 24px;align-items:center}
  .hero-copy{display:contents}
  .hero h1{font-size:clamp(28px,8.4vw,40px);line-height:1.12;letter-spacing:-1.2px;grid-column:1;grid-row:1}
  .hero-art{grid-column:2;grid-row:1 / span 2;width:100%;max-width:190px;align-self:center}
  .hero-art::before{inset:12% -5% 0}
  .hero h1 span::after{height:5px;bottom:-7px}
  .hero-badge-row{grid-column:1;grid-row:2;margin-top:5px}
  .hero-badge-row .free{font-size:13px;padding:8px 11px;gap:6px;white-space:normal}
  .hero p{grid-column:1 / -1;grid-row:3;font-size:14px;margin:0;line-height:1.5}
  .main{padding-inline:13px;gap:14px}.card{padding:18px 17px;border-radius:22px}
  .type{border-radius:13px;min-height:68px;height:auto;padding:8px 3px;overflow-wrap:anywhere}
  .preview{gap:13px}.preview h2{font-size:20px}
  .custom:not([open]) summary{min-height:64px;padding:10px 12px}
  .benefits{margin-inline:13px;margin-top:2px;padding:18px 10px;gap:10px}
  .benefit{gap:8px}.benefit strong{font-size:11px;line-height:1.45}
  .benefit .ico{width:34px;height:34px;font-size:23px}
  .footer{padding-inline:22px;padding-bottom:30px;font-size:12px;line-height:1.6}
}
@media(max-width:360px){
  .benefits{grid-template-columns:1fr;padding:17px 20px;gap:12px}.benefit{gap:12px}.benefit strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Give longer Indic labels enough room without shrinking the text. */
@media(max-width:360px){
  html:is(:lang(ta),:lang(te),:lang(ml)) .types{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Consistent disclosure arrow and action buttons in the design/PDF controls. */
.pdf-settings summary{align-items:center;gap:12px;min-height:60px;padding:11px 14px}
.pdf-settings summary .custom-arrow{flex-shrink:0}
.pdf-settings[open] summary .custom-arrow{transform:rotate(180deg)}
.pdf-settings summary:focus-visible{outline:3px solid #c08f00;outline-offset:-3px}
.logo-actions .secondary,.design-bottom .reset-design,.logo-actions input[type=file]::file-selector-button{min-height:44px;padding:10px 12px;border:1px solid #e5e1d7;border-radius:9px;background:#fff;color:var(--duck-ink);font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer}
.logo-actions input[type=file]{width:100%;min-width:0;min-height:44px;color:var(--duck-muted);font-size:13px}
.logo-actions input[type=file]::file-selector-button{font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;margin-inline-end:10px}
.logo-actions .secondary:hover,.design-bottom .reset-design:hover,.logo-actions input[type=file]::file-selector-button:hover{background:#fff6cb;border-color:#d5b547}
.pdf-option textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;resize:vertical;border:1px solid #d9d8cf;border-radius:9px;background:#fff;padding:10px;font:inherit;font-size:13px;line-height:1.5}
.pdf-paper{position:relative;padding:0;overflow:hidden}
.pdf-paper-inner{position:absolute;inset:0;display:block}
.pdf-paper-title,.pdf-paper-qr,.pdf-paper-description{position:absolute;left:50%;transform:translateX(-50%);margin:0;text-align:center;flex:none}
.pdf-paper-title{line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdf-paper-description{white-space:pre;line-height:1.4;color:#4a4a4a}
.pdf-paper-description:empty{display:none}

.pdf-option textarea:focus-visible{outline:3px solid #c08f00;outline-offset:2px}

.pdf-option label{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.pdf-option output{float:none}
/* Optional frames sit outside the QR quiet zone and share the existing text fields. */
.frame-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-block:12px}
.frame-preset{min-width:0;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 4px;border:1.5px solid #e6e3d8;border-radius:12px;background:#fffdf7;color:var(--duck-ink);font-size:12px;font-weight:650}
.frame-preset:hover{background:#fff5d8;border-color:#dbb64f}
.frame-preset.on{background:#fff0b8;border-color:#c99b18;box-shadow:0 0 0 1px #f7df88}
.frame-preset-art{height:68px;width:100%;display:flex;align-items:center;justify-content:center}
.frame-preset-art svg{max-height:68px;max-width:68px;width:auto;height:auto}
.frame-color-settings{display:grid;gap:10px;margin-block:12px}
.frame-color-settings[hidden],.frame-box-color[hidden]{display:none}
.frame-colors{display:flex;gap:10px;flex-wrap:wrap;padding:4px}
.frame-color{width:44px;height:44px;border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #ddd4b7}
.frame-color[aria-pressed=true]{box-shadow:0 0 0 3px #a98a27}
.frame-settings .pdf-option{margin-top:12px}
.frame-text-hint{font-size:12px;line-height:1.5;color:var(--duck-muted);margin-bottom:0}
.qrbox.has-frame{aspect-ratio:auto;align-items:flex-start;padding:14px}
.qrbox.has-frame>svg{width:100%;max-width:100%;max-height:none;height:auto;aspect-ratio:auto}

#editFrameText{min-height:44px;width:100%;white-space:normal}
.frame-settings .pdf-option input{min-height:44px}
