/* Homepage — "The Mint". Dark press, paper tickets, coral stamp. Scoped to body.home */
body.home { --ink-bg: #0c1511; --ink-bg-2: #111d17; --paper-on-ink: #f3f6f2; --mint-bright: #35d38f; --coral: #ff6a3d; background: var(--paper); }
body.home .wrap { max-width: 1160px; }

/* Header on dark */
.home .site-header { color: var(--paper-on-ink); position: relative; z-index: 3; }
.home .site-header .brand, .home .site-header .nav a { color: var(--paper-on-ink); }
.home .site-header .nav a:not(.btn) { opacity: .78; }
.home .site-header .nav a:not(.btn):hover { opacity: 1; }
.home .site-header .btn-primary { background: var(--mint-bright); color: #0c1511; }
.home .site-header .btn-primary:hover { background: #5de3a8; }

/* Press */
.press { background: var(--ink-bg); color: var(--paper-on-ink); position: relative; overflow: hidden; }
.press::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(53,211,143,.16), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, rgba(255,106,61,.10), transparent 60%); pointer-events: none; }
.press::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); pointer-events: none; }
.press .wrap { position: relative; z-index: 1; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(60px, 8vw, 110px); }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; padding-bottom: 40px; } }
.hero2 h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); line-height: .96; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "opsz" 96; margin: 0; }
.hero2 h1 .addr { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: .34em; letter-spacing: 0; vertical-align: middle; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--mint-bright); padding: .32em .6em; border-radius: 10px; transform: translateY(-.12em); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero2 .lede { color: rgba(243,246,242,.78); margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34em; }
.hero2 .hero-actions { margin-top: 30px; }
.hero2 .btn-primary { background: var(--mint-bright); color: #0c1511; font-size: 1.05rem; padding: 14px 22px; }
.hero2 .btn-primary:hover { background: #5de3a8; }
.hero2 .btn-ghost { color: var(--paper-on-ink); border-color: rgba(255,255,255,.22); font-size: 1.05rem; padding: 14px 22px; }
.hero2 .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero2 .hero-note { color: rgba(243,246,242,.55); margin-top: 16px; }
.hero2 .hero-note a { color: var(--mint-bright); }

/* The machine + ticket */
.machine { position: relative; padding-top: 8px; }
.machine-body { background: linear-gradient(180deg, #1a2922, #0f1a15); border: 1px solid rgba(255,255,255,.1); border-radius: 18px 18px 6px 6px; padding: 18px 18px 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.machine-top { display: flex; justify-content: space-between; align-items: center; color: rgba(243,246,242,.6); font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; }
.machine-top .led { display: inline-flex; align-items: center; gap: 7px; }
.machine-top .led i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 10px var(--mint-bright); }
.machine-top .led.busy i { background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: blink .5s steps(2) infinite; }
@keyframes blink { to { opacity: .25; } }
.slot { height: 16px; margin: 14px -4px 0; border-radius: 8px; background: #05090733; box-shadow: inset 0 4px 10px rgba(0,0,0,.75), inset 0 -1px 0 rgba(255,255,255,.06); }
.ticket2 { position: relative; margin: -6px 14px 0; background: var(--paper); color: var(--ink); border-radius: 0 0 10px 10px; padding: 24px 24px 28px; transform-origin: top center; box-shadow: 0 30px 50px -30px rgba(0,0,0,.9); }
.ticket2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px 0, transparent 7px, var(--paper) 7.5px) 0 0 / 20px 10px repeat-x; }
.ticket2.printing { animation: print2 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes print2 { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -12px 0); } }
.ticket2 .t-title { font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.15; padding-right: 86px; }
.ticket2 .t-meta { font-family: var(--mono); font-size: .76rem; color: #5c6f66; margin-top: 6px; }
.ticket2 .t-rows { margin-top: 16px; border-top: 1px dashed #cfd9d2; padding-top: 10px; display: grid; gap: 7px; font-size: .9rem; color: #3e5248; }
.ticket2 .t-rows .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #dde5df; padding-bottom: 5px; }
.ticket2 .t-rows b { color: #10211a; font-weight: 600; font-family: var(--mono); font-size: .84rem; }
.ticket2 .t-url { margin-top: 16px; display: flex; align-items: center; gap: 10px; background: #eaefe9; border-radius: 6px; padding: 10px 12px; font-family: var(--mono); font-size: .82rem; word-break: break-all; min-height: 44px; }
.ticket2 .t-url a { color: #10211a; flex: 1; }
.ticket2 .t-url .btn { padding: 6px 11px; font-size: .8rem; color: #10211a; border-color: #cfd9d2; }
.ticket2 .stamp2 { position: absolute; right: 20px; top: 18px; transform: rotate(-9deg); border: 2.5px solid #c8421f; color: #c8421f; border-radius: 6px; padding: 4px 9px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; opacity: 0; transition: opacity .2s; }
.ticket2 .stamp2.on { opacity: .92; animation: stamp .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .92; } }

/* Ticker */
.ticker { background: var(--mint-bright); color: #0c1511; overflow: hidden; border-top: 1px solid rgba(0,0,0,.08); }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; padding: 12px 0; font-weight: 600; font-size: .95rem; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0c1511; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; width: auto; } }

/* Light sections */
.home .section { padding: clamp(56px, 7vw, 100px) 0; border-top: 0; }
.home .section + .section { border-top: 1px solid var(--rule); }
.home .section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; }
.home .section-head p { font-size: 1.08rem; }

/* Connect: big code */
.home pre.big { font-size: clamp(.95rem, 1.6vw, 1.25rem); padding: 22px 26px; border-radius: 14px; }
.home .tab { font-size: .95rem; padding: 10px 16px; }

/* Specimens: three tilted tickets */
.specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 900px) { .specimens { grid-template-columns: 1fr; } }
.spec { display: grid; gap: 12px; }
.spec .card { border-radius: 12px; padding: 20px 20px 22px; box-shadow: 0 30px 50px -34px rgba(16,33,26,.55); border: 1px solid var(--rule); min-height: 250px; transition: transform .25s; position: relative; }
.spec:nth-child(1) .card { transform: rotate(-1.2deg); }
.spec:nth-child(2) .card { transform: rotate(.8deg) translateY(10px); }
.spec:nth-child(3) .card { transform: rotate(-.6deg); }
.spec:hover .card { transform: rotate(0) translateY(-4px); }
.spec .card.paper { background: #fff; color: #10211a; }
.spec .card.ink { background: #152019; color: #e7efe9; border-color: #243128; }
.spec .card.term { background: #0f1512; color: #cfe9d9; border-color: #1d2a23; font-family: var(--mono); }
.spec .card h4 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.02em; }
.spec .card.term h4 { letter-spacing: 0; font-size: 1.05rem; }
.spec .card p, .spec .card li { font-size: .9rem; line-height: 1.5; margin: 0; }
.spec .card ul { margin: 8px 0 0; padding-left: 18px; }
.spec .card table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: 8px; }
.spec .card td, .spec .card th { text-align: left; padding: 5px 6px; border-bottom: 1px solid rgba(127,127,127,.25); }
.spec .card .bar { height: 8px; border-radius: 4px; background: rgba(53,211,143,.25); margin-top: 6px; overflow: hidden; }
.spec .card .bar i { display: block; height: 100%; background: #35d38f; }
.spec .say { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--mint); padding-left: 12px; font-size: .95rem; }
.spec .how { font-size: .88rem; color: var(--ink-3); }
.spec .how code { font-size: .82rem; }
.spec .card .ribbon { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: .68rem; color: var(--ink-3); border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; opacity: .8; }

/* Manifesto */
.manifesto { background: var(--ink-bg); color: var(--paper-on-ink); }
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); align-items: center; }
@media (max-width: 900px) { .manifesto .wrap { grid-template-columns: 1fr; } }
.manifesto h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.02; }
.manifesto p { color: rgba(243,246,242,.74); margin-top: 18px; max-width: 46ch; font-size: 1.05rem; }
.manifesto a { color: var(--mint-bright); }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 20px; }
.counter b { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1; font-variation-settings: "opsz" 96; }
.counter span { display: block; margin-top: 8px; color: rgba(243,246,242,.6); font-size: .88rem; }

/* Pricing on home */
.home .plan.pro { background: var(--ink-bg); color: var(--paper-on-ink); border-color: var(--ink-bg); box-shadow: 0 30px 60px -36px rgba(12,21,17,.8); }
.home .plan.pro .price small, .home .plan.pro .alt { color: rgba(243,246,242,.6); }
.home .plan.pro li::before { background: rgba(53,211,143,.2); box-shadow: inset 0 0 0 3px var(--mint-bright); }
.home .plan.pro .btn-primary { background: var(--mint-bright); color: #0c1511; }
.home .plan .price { font-size: 2.8rem; }

/* Footer dark */
.home .site-footer { border-top: 0; background: var(--ink-bg); color: rgba(243,246,242,.6); margin: 0; padding: 32px 0 44px; }
.home .site-footer a { color: rgba(243,246,242,.8); }
.home .footer-bleed { background: var(--ink-bg); }
