:root {
  color-scheme: light;
  --brand: #c63c0a;
  --brand-light: #ffc4ad;
  --charcoal: #494948;
  --pine: #246244;
  --pine-dark: #1d523a;
  --ink: #494948;
  --paper: #f8f9f4;
  --muted: #687068;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  border-top: 6px solid var(--brand);
  background-color: var(--charcoal);
  background-image: radial-gradient(ellipse at 12% 43%, #245e3f38, transparent 55%);
  color: var(--paper);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #c99c00; outline-offset: 5px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }
.page-shell { max-width: 1440px; margin: auto; padding: 0 6.1%; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; border-bottom: 1px solid #ffffff28; gap: 20px; }
.brand { display: flex; align-items: center; gap: 26px; }
.brand-logo-frame { display: block; width: 300px; aspect-ratio: 3 / 1; overflow: hidden; position: relative; flex-shrink: 0; }
.brand-logo { display: block; width: 100%; height: auto; position: absolute; top: 50%; transform: translateY(-50%); }
.brand-division { border-left: 1px solid #ffffff40; padding: 3px 0 3px 24px; color: #f0f0e8; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; line-height: 1.6; }
.brand-division span { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: #c7cec5; }
.header-link { font-size: 14px; color: #f0f0e8; display: flex; align-items: center; gap: 19px; }
.header-link svg { width: 23px; height: 30px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 6%; padding: 55px 0 40px; align-items: start; }
.eyebrow { font-size: 12px; letter-spacing: 1.7px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 10px; margin: 7px 0 24px; line-height: 1.6; }
.little-star { font-size: 20px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(54px, 6.1vw, 86px); line-height: 1.04; letter-spacing: -3px; margin: 0 0 23px; }
h1 em { font-weight: 400; color: var(--brand); }
.intro-copy { font-size: 16px; line-height: 1.85; color: #e0e2d8; margin: 0; max-width: 540px; }
.event-details { display: flex; gap: 34px; margin-top: 30px; }
.event-detail { display: flex; align-items: center; gap: 12px; }
.event-detail svg { width: 27px; height: 27px; stroke: var(--brand); stroke-width: 1.3; flex-shrink: 0; }
.event-detail span { display: block; font-size: 11px; letter-spacing: 1px; color: #c2cbbf; margin-bottom: 7px; }
.event-detail strong { font-size: 16px; font-weight: 600; white-space: nowrap; }
.tree-scene { position: relative; height: 220px; max-width: 530px; margin: 16px 0 -8px; }
.tree-art { width: 410px; position: absolute; left: -14px; top: -1px; }
.scene-star { position: absolute; color: var(--brand); }
.star-one { left: 13px; top: 63px; font-size: 23px; }
.star-two { left: 342px; top: 13px; font-size: 30px; }
.scene-caption { font-family: Georgia, serif; font-style: italic; position: absolute; top: 87px; left: 344px; transform: rotate(-6deg); font-size: 18px; line-height: 1.3; color: #e0e7d3; white-space: nowrap; }
.draw-card { background: var(--paper); color: var(--ink); border-radius: 12px; border-top: 6px solid var(--brand); padding: 24px 34px 25px; box-shadow: 0 22px 65px #14141620; min-height: 559px; position: relative; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #647064; font-size: 11px; font-weight: 650; letter-spacing: 1.4px; padding-bottom: 22px; }
.card-tree { width: 24px; height: 29px; color: var(--pine); flex-shrink: 0; }
.draw-card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 43px; font-weight: 400; line-height: 1.08; letter-spacing: -1.4px; margin: 0 0 15px; }
.card-copy { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }
form > label:first-child { display: block; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
input[type=text] { width: 100%; height: 53px; padding: 12px 15px; border: 1px solid #b9c3b6; border-radius: 5px; background: white; color: var(--ink); font-size: 16px; box-shadow: 0 2px 3px #00000002; }
input[type=text]::placeholder { color: #8a9288; }
.field-help { font-size: 12px; line-height: 1.5; margin: 9px 0 20px; color: #717b6f; }
.confirm-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; cursor: pointer; margin-bottom: 23px; }
.confirm-label input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--pine); flex-shrink: 0; }
.primary-button { border: 0; border-radius: 5px; background: var(--brand); color: var(--charcoal); font-size: 16px; font-weight: 700; min-height: 54px; width: 100%; display: flex; gap: 13px; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.primary-button:hover:enabled { background: #a93408; transform: translateY(-1px); }
.primary-button svg { width: 22px; height: 22px; stroke: var(--charcoal); stroke-width: 1.5; stroke-linejoin: round; }
.card-footnote { display: flex; align-items: center; gap: 10px; border-top: 1px solid #d6ddcf; margin-top: 24px; padding-top: 18px; }
.card-footnote > span { font-size: 26px; color: var(--pine); }
.card-footnote p { font-size: 12px; color: #66725f; line-height: 1.65; margin: 0; }
.ground-rules { border-top: 1px solid #ffffff28; border-bottom: 1px solid #ffffff28; padding: 28px 0 31px; display: grid; grid-template-columns: 1.08fr 1fr 1fr 1fr; gap: 34px; align-items: start; }
.rules-heading { display: flex; gap: 17px; align-items: center; }
.rules-heading > span { font-size: 47px; color: var(--brand); line-height: 1; }
.rules-heading h2 { font-family: Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.2; margin: 0; letter-spacing: -.4px; }
.rule h3 { font-size: 15px; font-weight: 600; margin: 1px 0 10px; }
.rule p { font-size: 14px; color: #d2d9cb; line-height: 1.7; margin: 0; }
.independent-note { display: flex; justify-content: center; gap: 11px; align-items: center; padding: 23px 0; border-bottom: 1px solid #ffffff28; }
.independent-note svg { stroke: var(--brand); stroke-width: 1.5; width: 27px; height: 27px; flex-shrink: 0; }
.independent-note p { margin: 0; font-size: 14px; color: #efefe7; line-height: 1.6; }
.independent-note p span { display: block; font-size: 12px; color: #c2cbbd; }
footer { min-height: 80px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #c2cbbd; font-size: 12px; }
footer a { text-decoration: underline; text-underline-offset: 4px; color: var(--brand); }
.footer-year { font-size: 10px; letter-spacing: 1.3px; }
.form-error { border-left: 3px solid #ac3e32; background: #fce8e2; padding: 11px 12px; color: #8b342c; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.result-panel { text-align: center; outline: none; }
.result-icon { width: 67px; height: 67px; display: grid; place-items: center; font-size: 45px; background: #e1ebd9; border-radius: 50%; color: var(--pine); margin: 4px auto 23px; animation: pop .45s ease-out; }
.result-hello { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.draw-card .result-panel h2 { font-size: 29px; letter-spacing: -.8px; }
.recipient { font-family: Georgia, serif; font-size: 64px; line-height: 1.3; color: var(--pine); letter-spacing: -2px; overflow-wrap: anywhere; margin: 6px 0 12px; animation: pop .5s ease-out; }
.result-copy { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.result-reminder { display: flex; justify-content: center; gap: 12px; padding: 14px 0; border-block: 1px solid #d6ddcf; font-size: 14px; font-weight: 600; }
.result-reminder > span:nth-child(2) { color: var(--pine); }
.saved-note { font-size: 12px; line-height: 1.6; color: #65705f; margin: 17px 0 24px; }
.demo-banner { padding: 13px 6%; background: var(--brand); color: var(--charcoal); display: flex; justify-content: center; gap: 25px; font-size: 14px; line-height: 1.6; flex-wrap: wrap; }
.demo-banner a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.is-drawing svg { animation: wiggle .6s ease-in-out infinite; }
.is-demo .draw-card { outline: 2px solid var(--brand); outline-offset: 5px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@media (min-width: 1450px) { .hero { gap: 10%; grid-template-columns: minmax(0, 1fr) 460px; } h1 { font-size: 86px; } }
@media (max-width: 1100px) {
  .page-shell { padding: 0 5%; }
  .hero { gap: 5%; grid-template-columns: minmax(0, 1fr) 400px; padding-top: 45px; }
  h1 { font-size: 66px; letter-spacing: -2.8px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.3px; }
  .event-details { gap: 22px; flex-wrap: wrap; }
  .event-detail strong { font-size: 15px; }
  .event-detail span { font-size: 10px; }
  .tree-art { width: 350px; }
  .tree-scene { height: 190px; }
  .star-two { left: 300px; }
  .scene-caption { left: 280px; top: 72px; font-size: 16px; }
  .draw-card { padding: 24px 28px 23px; }
  .ground-rules { gap: 24px; }
  .rules-heading { gap: 10px; }
  .rules-heading h2 { font-size: 20px; }
  .rules-heading > span { font-size: 37px; }
  .footer-year { max-width: 145px; line-height: 1.6; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; }
  .draw-card { padding-inline: 25px; }
  h1 { font-size: 54px; letter-spacing: -2px; }
  .intro-copy { line-height: 1.7; }
  .desktop-break { display: none; }
  .eyebrow { max-width: 300px; font-size: 10px; line-height: 1.7; }
  .tree-art { width: 100%; max-width: 350px; }
  .tree-scene { height: 190px; overflow: hidden; }
  .scene-caption { display: none; }
  .ground-rules { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .rule p { max-width: 300px; }
  .intro .event-details { gap: 20px; }
  .site-header { min-height: 101px; }
  .brand { gap: 20px; }
  .brand-division { padding-left: 20px; font-size: 11px; }
  .brand-logo-frame { width: 270px; }
  .header-link { gap: 12px; }
}
@media (max-width: 730px) {
  .page-shell { padding: 0 6%; }
  .site-header { min-height: 98px; gap: 12px; }
  .brand { gap: 15px; }
  .brand-logo-frame { width: 230px; }
  .brand-division { display: none; }
  .header-link { font-size: 0; gap: 0; }
  .header-link svg { width: 22px; height: 29px; }
  .hero { grid-template-columns: 1fr; padding: 30px 0 36px; gap: 12px; }
  .eyebrow { max-width: none; font-size: 10px; margin: 0 0 16px; letter-spacing: 1.2px; }
  h1 { font-size: clamp(46px, 12vw, 76px); letter-spacing: -2px; line-height: 1.05; margin-bottom: 18px; }
  .intro-copy { font-size: 16px; max-width: 460px; }
  .event-details { margin-top: 24px; gap: 24px !important; }
  .event-detail strong { font-size: 15px; }
  .event-detail span { font-size: 10px; }
  .event-detail svg { width: 24px; }
  .tree-scene { height: 167px; margin: 6px 0 0; }
  .tree-art { width: 310px; left: 50%; top: -7px; transform: translateX(-50%); }
  .star-one { left: 12%; top: 34px; font-size: 20px; }
  .star-two { left: auto; right: 10%; top: 18px; font-size: 24px; }
  .draw-card { width: 100%; max-width: 490px; justify-self: center; padding: 23px 27px; min-height: 0; }
  .card-topline { padding-bottom: 20px; font-size: 10px; letter-spacing: 1px; }
  .draw-card h2 { font-size: 40px; }
  .card-copy { margin-bottom: 23px; }
  .confirm-label { font-size: 14px; }
  .card-footnote p { font-size: 12px; }
  .ground-rules { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .rules-heading h2 { font-size: 24px; }
  .rules-heading h2 br { display: none; }
  .rules-heading { gap: 17px; }
  .rules-heading > span { font-size: 37px; }
  .rule h3 { font-size: 16px; margin-bottom: 6px; }
  .rule p { font-size: 15px; max-width: 450px; }
  .rule { padding-left: 54px; }
  .independent-note { align-items: flex-start; justify-content: flex-start; padding: 22px 0; gap: 13px; }
  .independent-note svg { margin-top: 2px; }
  .independent-note p { font-size: 14px; }
  .independent-note p span { font-size: 12px; margin-top: 4px; }
  footer { padding: 24px 0; min-height: 90px; flex-wrap: wrap; gap: 15px 22px; font-size: 12px; }
  .footer-year { width: 100%; max-width: none; font-size: 10px; }
  .demo-banner { font-size: 13px; padding: 13px 6%; gap: 4px; justify-content: flex-start; }
  .result-panel { padding-bottom: 1px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.code-label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.code-notice { font-size: 14px; line-height: 1.6; padding: 12px 14px; background: #e6eddc; color: #294834; border-radius: 5px; margin: 0 0 18px; }
#email-code { letter-spacing: .3em; font-size: 22px; }
.code-actions { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.code-actions button { border: 0; background: transparent; padding: 5px 0; font-size: 14px; color: var(--pine-dark); text-decoration: underline; text-underline-offset: 3px; }
.code-actions button:disabled { color: #737970; cursor: default; text-decoration: none; opacity: 1; }
input[readonly] { background: #edf0e8; }

/* Alltype Engineering brand: rust orange and charcoal, with festive green. */
.brand-wordmark { display: block; color: var(--paper); border-bottom: 3px solid var(--brand); padding: 7px 0 10px; font-size: 31px; font-weight: 800; letter-spacing: 1.5px; line-height: 1; }
.brand-wordmark span { display: block; margin-top: 7px; font-size: 12px; letter-spacing: 4px; font-weight: 600; }
h1 em, .eyebrow, .scene-star, footer a { color: var(--brand-light); }
.event-detail svg, .independent-note svg { stroke: var(--brand-light); }
.rules-heading > span { color: var(--brand-light); }
.primary-button, .demo-banner { color: white; }
.primary-button svg { stroke: white; }
@media (max-width: 730px) { .brand-wordmark { font-size: 25px; } .brand-wordmark span { font-size: 10px; letter-spacing: 3px; } }

.alltype-logo-panel { display: block; width: 320px; padding: 13px 16px; background: #fff; border-radius: 6px; }
.alltype-logo { display: block; width: 100%; height: auto; }
@media (max-width: 730px) { .alltype-logo-panel { width: 250px; padding: 11px 12px; } }
@media (max-width: 360px) { .alltype-logo-panel { width: 220px; padding: 10px; } }
