/* Relative icons and concise, readable actions. */
.icon { font-size: 1em; width: 1em; height: 1em; flex: 0 0 1em; }
.button, .button-small, .header-actions > .button, .hero-actions .button,
.sample-banner > .button, .closing .button, .summary-cta, .dialog-body > .button,
.step-enhanced .step-actions > .button {
    min-height: 44px;
    padding: 12px 18px;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}
.header-actions > .button { padding: 10px 14px; gap: 8px; }
.step-enhanced .step-actions > .button { padding: 9px 14px; gap: 8px; }
.main-nav a { font-size: 16px; }
.main-nav { gap: 22px; }
.text-link, .hero-actions .text-link, .footer-top .text-link, .story-copy .text-link,
.download-link, .step-back, .reset-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    gap: 10px;
}
.round-link, .dialog-close, .menu-toggle, .quantity-control button { font-size: 16px; }
.config-step-tabs button, .step-enhanced .config-step-tabs button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    gap: 6px;
    font-size: 16px;
}
.step-enhanced .flavor-surface { font-size: 13px; }
.step-enhanced .flavor-surface strong { font-size: 1em; }
.profile-core { font-size: 16px; }
.sample-icon, .responsibility-mark, .responsibility-icon { font-size: 16px; }

.audience-section {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 85px;
    padding-top: 80px;
}
.audience-intro > p { max-width: 310px; margin-top: 24px; font-size: 16px; line-height: 1.85; }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 30px; }
.audience-grid article { border-top: 1px solid var(--line); padding-top: 19px; }
.audience-grid h3 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.5; }
.audience-grid h3 .icon { color: var(--copper); }
.audience-grid p { margin-top: 12px; font-size: 15px; line-height: 1.85; }
.audience-shared { grid-column: 1 / -1; }
.cooperation-section { background: #201914; border-block: 1px solid var(--line); }
.cooperation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cooperation-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid #59412e; border-radius: 12px; background: #271e17; }
.cooperation-grid h3 { display: flex; align-items: baseline; gap: 11px; font-size: 21px; line-height: 1.45; }
.cooperation-grid h3 .icon { color: var(--copper); }
.cooperation-grid article > p { flex: 1; margin-top: 20px; font-size: 15px; line-height: 1.85; }
.cooperation-fact { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-block: 25px 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cooperation-fact strong { font-size: 15px; }
.cooperation-fact span { color: var(--muted); font-size: 13px; }

/* Ordered content stays in reading order while the cards alternate visually. */
.process-timeline { position: relative; list-style: none; padding: 0; margin: 55px 0 0; }
.process-timeline::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 50%; width: 1px; background: #78563c; }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: start; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { grid-column: 2; grid-row: 1; justify-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 12px; border: 1px solid #8c6649; border-radius: 50%; background: #201914; color: var(--copper); font-size: 13px; font-weight: 600; z-index: 1; transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease; }
.timeline-card { position: relative; grid-column: 1; grid-row: 1; min-width: 0; padding: 25px 28px; border: 1px solid var(--line); border-radius: 12px; background: #271e17; }
.timeline-card::after { content: ''; position: absolute; top: 31px; right: -40px; width: 40px; height: 1px; background: #78563c; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-card::after { left: -40px; right: auto; }
.timeline-card h3 { font-size: 22px; line-height: 1.45; }
.timeline-card p { margin-top: 15px; font-size: 15px; line-height: 1.85; }
.timeline-card .text-link { margin-top: 14px; color: var(--copper); }
.timeline-item.is-step-current .timeline-marker { background: var(--copper); color: var(--bg); border-color: var(--copper); }
.quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.quality-grid article { border-top: 1px solid var(--line); padding-top: 23px; }
.quality-grid h3 { display: flex; align-items: baseline; gap: 10px; font-size: 21px; line-height: 1.5; }
.quality-grid h3 .icon { color: var(--copper); }
.quality-grid p { font-size: 15px; line-height: 1.9; margin-top: 18px; }
.quality-grid .text-link { margin-top: 15px; }

/* Decorative illustrations are separate from Font Awesome interface icons. */
.hero-beans { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.coffee-bean { position: absolute; width: 19px; height: 30px; border: 1px solid #deb58a80; border-radius: 50%; background: #482e1b; box-shadow: inset -4px -2px 5px #0e08064d; opacity: .55; transform: rotate(var(--bean-angle, -20deg)); }
.coffee-bean::before { content: ''; position: absolute; inset: 3px 7px; border-left: 1px solid #e2ba8b80; border-radius: 50%; transform: rotate(9deg); }
.coffee-bean:nth-child(1) { left: 11%; top: 28%; --bean-angle: -28deg; --bean-duration: 14s; --bean-delay: -3s; }
.coffee-bean:nth-child(2) { right: 10%; top: 24%; width: 14px; height: 23px; --bean-angle: 35deg; --bean-duration: 18s; --bean-delay: -9s; }
.coffee-bean:nth-child(3) { left: 7%; bottom: 29%; width: 15px; height: 24px; --bean-angle: 19deg; --bean-duration: 16s; --bean-delay: -5s; }
.coffee-bean:nth-child(4) { right: 7%; bottom: 21%; --bean-angle: -36deg; --bean-duration: 12s; --bean-delay: -1s; }
.sample-icon { position: relative; overflow: visible; }
.coffee-steam { position: absolute; left: calc(50% - 7px); bottom: calc(50% + 7px); width: 14px; height: 18px; pointer-events: none; }
.coffee-steam > span { position: absolute; bottom: 0; left: 2px; width: 5px; height: 14px; border-left: 1px solid var(--copper); border-radius: 50%; opacity: .3; }
.coffee-steam > span + span { left: 8px; bottom: 2px; }
.has-motion .coffee-bean { animation: bean-drift var(--bean-duration) ease-in-out var(--bean-delay) infinite; animation-play-state: paused; }
.has-motion .hero-beans.ambient-running .coffee-bean { animation-play-state: running; }
.has-motion [data-ambient=pack] { animation: pack-drift 10s ease-in-out -2s infinite; animation-play-state: paused; }
.has-motion [data-ambient=pack].ambient-running { animation-play-state: running; }
.has-motion .coffee-steam > span { animation: steam-drift 7s ease-in-out infinite; animation-play-state: paused; }
.has-motion .coffee-steam > span + span { animation-delay: -3.5s; }
.has-motion .coffee-steam.ambient-running > span { animation-play-state: running; }
.is-page-hidden *, .is-page-hidden *::before, .is-page-hidden *::after { animation-play-state: paused !important; }
@keyframes bean-drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--bean-angle)); }
    50% { transform: translate(2px, -6px) rotate(calc(var(--bean-angle) + 4deg)); }
}
@keyframes pack-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes steam-drift { 0%, 100% { opacity: .12; transform: translateY(1px) rotate(-4deg); } 50% { opacity: .4; transform: translateY(-5px) rotate(4deg); } }

@media (min-width: 901px) {
    .step-enhanced #config-step-1 .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .step-enhanced #config-step-1 .coffee-type-field { grid-column: span 2; }
    .step-enhanced .form-actions { margin-top: 3px; min-height: 28px; }
    .step-enhanced .form-actions .reset-link { min-height: 28px; font-size: 14px; }
    .step-enhanced .config-step-tabs { margin-bottom: 10px; padding-bottom: 8px; }
    .step-enhanced ~ .project-summary .summary-cta { min-height: 44px; padding: 10px 14px; margin-top: 10px; font-size: 16px; }
    .step-enhanced ~ .project-summary .download-link { min-height: 36px; font-size: 16px; margin-top: 4px; }
}
@media (max-width: 1100px) {
    .audience-section { gap: 45px; }
    .cooperation-grid { gap: 16px; }
    .cooperation-grid article { padding: 23px 20px; }
    .cooperation-grid h3, .quality-grid h3 { font-size: 19px; }
    .header-inner { gap: 20px; }
    .main-nav { gap: 17px; }
    .main-nav a { font-size: 15px; }
}
@media (max-width: 900px) {
    .audience-section { grid-template-columns: 1fr; gap: 32px; padding-top: 60px; }
    .audience-intro > p { max-width: 540px; }
    .cooperation-grid { grid-template-columns: 1fr; gap: 18px; }
    .cooperation-grid article { padding: 26px; }
    .cooperation-grid article > p { max-width: 650px; }
    .quality-grid { grid-template-columns: 1fr; gap: 28px; }
    .quality-grid p { max-width: 650px; }
    .timeline-card { padding: 23px 20px; }
    .timeline-card h3 { font-size: 20px; }
}
@media (max-width: 760px) {
    .process-timeline { margin-top: 32px; }
    .process-timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; padding-bottom: 22px; }
    .timeline-marker { grid-column: 1; }
    .timeline-card, .timeline-item:nth-child(even) .timeline-card { grid-column: 2; }
    .timeline-card::after, .timeline-item:nth-child(even) .timeline-card::after { left: -20px; right: auto; width: 20px; }
}
@media (max-width: 650px) {
    .audience-grid { grid-template-columns: 1fr; gap: 22px; }
    .audience-intro > p, .audience-grid p, .cooperation-grid article > p, .quality-grid p { font-size: 15px; }
    .audience-grid h3, .cooperation-grid h3, .quality-grid h3 { font-size: 19px; }
    .header-actions > .button { font-size: 16px; padding: 10px 12px; }
    .hero-actions { gap: 12px 20px; }
    .hero-actions .text-link { font-size: 16px; }
    .sample-banner > .button { font-size: 16px; }
    .timeline-card { padding: 20px 17px; }
    .timeline-card h3 { font-size: 18px; }
    .timeline-card p { font-size: 14px; }
    .timeline-card .text-link { font-size: 16px; }
    .config-step-tabs button, .step-enhanced .config-step-tabs button { font-size: 16px; padding-inline: 5px; gap: 5px; }
    .coffee-bean { opacity: .4; }
    .coffee-bean:nth-child(3), .coffee-bean:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .coffee-bean, [data-ambient=pack], .coffee-steam > span { animation: none !important; }
}

.choice-mark, .step-enhanced .flavor-surface .choice-mark { width: 18px; height: 18px; }
.promise-strip [aria-hidden], .faq-list summary > span { font-size: inherit; }
.quantity-control { font-size: 16px; }
.quantity-control input { font-size: inherit; }
.summary-heading h3 { font-size: 16px; }
@media (min-width: 651px) and (max-width: 900px) { .responsibility-intro h2 { font-size: clamp(26px, 3.8vw, 33px); } }
@media (min-width: 901px) {
    .step-enhanced ~ .project-summary { display: flex; flex-direction: column; padding: 14px 20px; }
    .step-enhanced ~ .project-summary .summary-meta { flex: 0 0 auto; padding-bottom: 6px; }
    .step-enhanced ~ .project-summary .cost-lines { display: flex; flex-direction: column; flex: 0 0 auto; gap: 6px; margin: 8px 0; line-height: 1.4; }
    .step-enhanced ~ .project-summary .cost-lines > div { margin: 0; }
    .step-enhanced ~ .project-summary .total-line { padding-top: 10px; line-height: 1.2; }
    .step-enhanced ~ .project-summary .rate-note { margin-top: 4px; line-height: 1.5; }
    .step-enhanced ~ .project-summary .summary-note { display: none; }
    .step-enhanced ~ .project-summary .summary-cta { flex-shrink: 0; }
    .step-enhanced ~ .project-summary .download-link { flex-shrink: 0; justify-content: center; }
}


/* Full-size product previews share one label in every view. */
.config-layout { grid-template-columns: minmax(0, 1fr) 240px 260px; background: transparent; }
.config-product { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12px 0; border-left: 1px solid var(--line); background: #211914; }
.package-preview { width: 100%; min-width: 0; margin: 0; }
.package-preview .bag-stage { height: 396px; width: 100%; min-width: 0; margin: 0; }
.package-preview .coffee-bag { width: 212px; height: 360px; min-width: 212px; min-height: 360px; flex: 0 0 212px; transform: rotate(-3deg); border-radius: 10px; }
.package-preview .bag-seal { height: 22px; }
.package-preview .bag-label { top: 50px; bottom: 22px; left: 17px; right: 17px; padding: 14px 10px 12px; }
.package-preview .bag-brand { padding-left: 40px; min-height: 37px; font-size: 20px; line-height: .95; }
.package-preview .bag-brand .eclipse { top: 3px; width: 30px; height: 30px; }
.package-preview .bag-line { flex: 0 0 1px; margin: 8px 0; }
.package-preview .bag-label > strong { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.package-preview.is-long-name .bag-label > strong { font-size: 14px; line-height: 1.25; }
.package-preview .bag-label > span:not(.bag-brand):not(.bag-line) { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.package-preview .bag-label > [data-package-field=notes] { font-size: 11px; }
.package-preview .bag-bottom { gap: 8px; padding-top: 10px; font-size: 10px; line-height: 1.4; }
.package-preview .bag-bottom > span:last-child { flex-shrink: 0; }
.package-preview .bag-orbit { width: 224px; height: 100px; }
.review-dialog { width: min(920px, calc(100% - var(--dialog-side-gap) * 2)); }
.review-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 26px; }
.review-product { position: sticky; top: 0; min-width: 0; padding-block: 6px; border-radius: 12px; background: #2b211a; }
.review-order { min-width: 0; }
.review-order > p:first-child { font-size: 14px; }
.review-order > .education-notice { margin-block: 20px; }
.review-order > .button { width: 100%; margin-top: 22px; }
.review-order #save-status { margin-top: 16px; }
.fallback-product { width: min(100%, 320px); margin: 25px auto; }
@media (min-width: 901px) {
    .configurator:has(.step-enhanced) .config-layout { grid-template-columns: minmax(0, 1fr) 240px 260px; }
    .step-enhanced ~ .config-product { height: 100%; }
    .step-enhanced ~ .project-summary { justify-content: center; padding-inline: 16px; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    .step-enhanced #config-step-1 .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
    .step-enhanced #config-step-1 .coffee-type-field { grid-column: 1 / -1; }
    .step-enhanced #config-step-1 .field small { display: none; }
    .step-enhanced .flavor-surface { padding: 8px; gap: 6px; }
}
@media (min-width: 651px) and (max-width: 900px) {
    .config-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: stretch; }
    .config-fields { grid-column: 1; grid-row: 1 / 3; }
    .config-product { grid-column: 2; grid-row: 1; border-bottom: 1px solid var(--line); }
    .project-summary { grid-column: 2; grid-row: 2; border-top: 0; }
}
@media (max-width: 760px) {
    .review-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .review-product { position: static; }
}
@media (max-width: 650px) {
    .config-layout { grid-template-columns: minmax(0, 1fr); }
    .config-product { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0; }
    .package-preview .bag-stage { height: 396px; }
}
