/* scanwich-retro.css — 2D retro diner styling */

/* ============ sunburst background ============ */
.sunburst {
  position: fixed; inset: -20% -20% auto -20%; height: 140vh; z-index: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 50% 32%,
      var(--ray) 0deg 7deg, transparent 7deg 14deg);
  opacity: .55;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, transparent 62%);
  z-index: -1;
}

/* ============ layout ============ */
.page { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 28px 80px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 26px 2px 10px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tomato); border: var(--ow) solid var(--outline); box-shadow: var(--hard-sm);
}
.brand__name { font-size: 28px; color: var(--ink); letter-spacing: .005em; }
.topnav { display: flex; align-items: center; gap: 12px; }

/* ============ buttons (flat + hard shadow) ============ */
.btn {
  font-family: "Fredoka", sans-serif; font-weight: 600;
  border: var(--ow) solid var(--outline); cursor: pointer; border-radius: 999px;
  font-size: 16px; padding: 11px 22px; color: var(--ink); background: var(--surface-2);
  box-shadow: var(--hard-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--outline); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--outline); }
.btn-sm { font-size: 15px; padding: 9px 18px; }
.btn-lg { font-size: 19px; padding: 14px 28px; box-shadow: var(--hard); }
.btn-lg:hover { box-shadow: 7px 7px 0 var(--outline); }
.btn-lg:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--outline); }

.btn-primary { background: var(--tomato); color: #fff8ef; }
.btn-soft { background: var(--mustard); color: var(--outline); }
.btn-ghost { background: var(--surface-2); }

/* ============ hero ============ */
.hero { display: grid; align-items: center; gap: 34px; padding: 18px 0 40px; min-height: 540px; }
.hero--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero--center .hero__copy { max-width: 640px; align-items: center; }
.hero--center .hero__stage { order: -1; }
.hero--left, .hero--right { grid-template-columns: 1.05fr 1fr; }
.hero--right .hero__stage { order: 2; }
@media (max-width: 880px) {
  .hero--left, .hero--right { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero--left .hero__copy, .hero--right .hero__copy { align-items: center; max-width: 600px; }
  .hero--left .hero__stage, .hero--right .hero__stage { order: -1; }
}

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.eyebrow {
  font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--outline);
  background: var(--lettuce); padding: 7px 15px; border-radius: 999px;
  border: 3px solid var(--outline); box-shadow: var(--hard-sm);
}
.hero__title { margin: 0; font-size: clamp(40px, 6.4vw, 66px); line-height: 1.02; color: var(--ink); letter-spacing: -.01em; }
.hero__title .accent { color: var(--tomato); font-size: 1.04em; line-height: 1.18; display: inline-block; -webkit-text-stroke: 0; }
.hero__sub { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.55; color: var(--ink-soft); max-width: 480px; text-wrap: pretty; }

/* price chip */
.price-chip {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--surface-2); padding: 12px 22px 12px 18px; border-radius: 20px;
  border: var(--ow) solid var(--outline); box-shadow: var(--hard);
}
.price-chip__big { display: flex; align-items: baseline; gap: 6px; }
.price-chip__num { font-size: 38px; line-height: 1; color: var(--tomato); }
.price-chip__cur { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 18px; color: var(--mustard-deep); }
.price-chip__meta { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.price-chip__meta strong { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.price-chip__meta span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero--center .hero__cta { justify-content: center; }

/* ============ hero stage (mascot) ============ */
.hero__stage { position: relative; display: grid; place-items: center; padding: 26px 10px 0; width: 100%; }
.sw-wrap { position: relative; width: 350px; max-width: 86vw; animation: bob 5.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-disc {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 330px; height: 330px; max-width: 84vw; border-radius: 50%;
  background: var(--surface-2); border: var(--ow) solid var(--outline);
  box-shadow: var(--hard); z-index: 0;
}
.mascot { position: relative; z-index: 2; display: block; }
.mascot-img {
  width: 100%; height: auto; display: block;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.mascot-shadow {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 210px; max-width: 64vw; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--outline) 32%, transparent), transparent 76%);
  z-index: 1;
}

/* press hint */
.press-hint {
  margin-top: 48px; display: inline-flex; align-items: center; gap: 7px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-soft); white-space: nowrap;
}
.press-hint svg { animation: hintBob 1.6s ease-in-out infinite; }
@keyframes hintBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(4px);} }

/* ============ comic effects (flat) ============ */
.speedlines { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 10; pointer-events: none; }
.speedline {
  position: absolute; left: -3px; top: -14px; width: 6px; height: 30px; border-radius: 4px;
  background: var(--outline); opacity: 0; animation: lineZip .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes lineZip {
  0%   { opacity: 0;  transform: rotate(var(--rot)) translateY(-80px) scaleY(.25); }
  35%  { opacity: 1;  transform: rotate(var(--rot)) translateY(-120px) scaleY(1); }
  100% { opacity: 0;  transform: rotate(var(--rot)) translateY(-168px) scaleY(1.1); }
}

.comic-burst {
  position: absolute; top: -8px; left: 50%; z-index: 13; transform: translateX(-50%); pointer-events: none;
  animation: burstPop .9s cubic-bezier(.3,1.4,.5,1) both;
}
.comic-burst__star {
  width: 152px; height: 152px; display: grid; place-items: center;
  background: var(--mustard);
  clip-path: polygon(
    50% 0%, 60% 20%, 80% 9%, 73% 31%, 95% 28%, 79% 47%, 100% 58%, 77% 62%,
    90% 84%, 65% 73%, 64% 99%, 49% 77%, 33% 96%, 33% 70%, 8% 79%, 23% 57%,
    0% 49%, 24% 41%, 10% 18%, 36% 28%, 31% 3%, 47% 22%
  );
  filter: drop-shadow(3px 3px 0 var(--outline));
}
.comic-burst__word {
  font-size: 27px; color: var(--tomato);
  -webkit-text-stroke: 2.5px var(--outline); paint-order: stroke fill;
  transform: rotate(-5deg); white-space: nowrap;
}
@keyframes burstPop {
  0%   { transform: translateX(-50%) translateY(14px) scale(.2) rotate(-16deg); opacity: 0; }
  22%  { transform: translateX(-50%) translateY(-4px) scale(1.18) rotate(6deg); opacity: 1; }
  42%  { transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); opacity: 1; }
  78%  { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1.02) rotate(-1deg); }
  100% { transform: translateX(-50%) translateY(-26px) scale(.92) rotate(2deg); opacity: 0; }
}

/* ============ cards ============ */
.card { background: var(--surface-2); border: var(--ow) solid var(--outline); }
.card-Hard .card { border-radius: 22px; box-shadow: var(--hard); }
.card-Soft .card { border-radius: 30px; box-shadow: 0 16px 0 -2px color-mix(in srgb, var(--outline) 22%, transparent); }
.card-Flat .card { border-radius: 16px; box-shadow: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.step__num {
  font-size: 22px; color: #fff8ef; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mustard-deep); border: var(--ow) solid var(--outline); box-shadow: var(--hard-sm); margin-bottom: 8px;
}
.step h3 { margin: 0; font-size: 22px; color: var(--ink); }
.step p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); }

/* closing */
.closing { margin-top: 24px; padding: 42px; display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 800px) { .closing { grid-template-columns: 1fr; padding: 30px; } }
.closing__left { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.closing__left h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; color: var(--ink); }
.closing__left p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink-soft); max-width: 420px; }

/* price calc */
.calc { background: var(--surface); border: var(--ow) solid var(--outline); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: inset 0 0 0 0 transparent; }
.calc__row { display: flex; align-items: center; justify-content: space-between; }
.calc__row > span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 5px; border: 3px solid var(--outline); }
.stepper button {
  width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--outline); cursor: pointer;
  font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; padding: 0; text-align: center;
  background: var(--surface-2); color: var(--ink); box-shadow: 2px 2px 0 var(--outline); transition: transform .08s;
}
.stepper button:active { transform: translate(2px,2px); box-shadow: none; }
.stepper__val { min-width: 42px; text-align: center; font-size: 22px; color: var(--ink); }
.calc__bar { height: 14px; border-radius: 999px; background: var(--surface-2); border: 3px solid var(--outline); overflow: hidden; }
.calc__fill { height: 100%; background: var(--lettuce); transition: width .25s var(--ease-out-back); }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; }
.calc__total > span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.calc__total strong { font-size: 30px; color: var(--tomato); }
.calc__total small { font-family: "Nunito", sans-serif; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-left: 3px; }

/* footer */
.foot { margin-top: 44px; padding-top: 22px; border-top: 3px solid var(--outline); display: flex; flex-direction: column; gap: 14px; }
.foot__row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.foot__brand { font-size: 24px; color: var(--ink); }
.foot__tag { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.foot__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.foot__links a { color: var(--ink); text-decoration: none; font-family: "Fredoka", sans-serif; }
.foot__links a:hover { color: var(--tomato); }
.foot__powered { margin-left: auto; color: var(--ink-soft) !important; font-weight: 600 !important; }
.foot__powered strong { color: var(--tomato); }
.foot__powered:hover strong { text-decoration: underline; }

/* ============ team / org ============ */
.team { margin-top: 24px; padding: 42px; display: grid; gap: 40px; grid-template-columns: .92fr 1.08fr; align-items: center; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; padding: 30px; } }
.team__left { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.team__left h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; color: var(--ink); }
.team__left p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink-soft); max-width: 440px; }
.team__points { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team__points li { position: relative; padding-left: 32px; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.team__points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--lettuce); border: 2.5px solid var(--outline); color: var(--outline);
  font-size: 13px; display: grid; place-items: center;
}
.team__diagram { display: grid; place-items: center; }

.org { display: flex; flex-direction: column; align-items: center; }
.org-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ava {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: var(--ow) solid var(--outline); box-shadow: var(--hard-sm);
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink);
}
.ava.a1 { background: var(--tomato); color: #fff3df; }
.ava.a2 { background: var(--lettuce); }
.ava.more { background: var(--mustard); }
.org-link { width: 0; height: 30px; border-left: 3px dashed var(--outline); }
.org-hub {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px;
  background: var(--mustard-deep); color: #fff3df; border: var(--ow) solid var(--outline); box-shadow: var(--hard-sm);
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px;
}
.org-hub__mark { display: grid; place-items: center; }
.org-codes { gap: 14px; }
.org-qr { background: #fff; padding: 6px; border-radius: 10px; border: var(--ow) solid var(--outline); box-shadow: var(--hard-sm); }
.org-qr svg { display: block; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sw-wrap, .press-hint svg, .comic-burst, .speedline { animation: none !important; }
}

/* ============ legal pages ============ */
.legal-bar { display: flex; align-items: center; justify-content: space-between; padding: 26px 2px 18px; }
.legal-back { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.legal-back:hover { color: var(--tomato); }
.legal-card { padding: 44px; }
@media (max-width: 640px) { .legal-card { padding: 28px; } }
.legal-card h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 44px); color: var(--ink); }
.legal-card .lead { margin: 0 0 24px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.legal-card h2 { margin: 26px 0 8px; font-size: 20px; color: var(--ink); }
.legal-card p, .legal-card li { font-size: 15.5px; font-weight: 600; line-height: 1.62; color: var(--ink-soft); }
.legal-card ul { margin: 6px 0; padding-left: 20px; }
.legal-card a { color: var(--tomato); font-weight: 700; }
.legal-note { margin-top: 30px; padding: 14px 16px; border: 3px dashed var(--outline); border-radius: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); background: var(--surface); }

/* ============ smartphones (≤480px) ============ */
@media (max-width: 480px) {
  .page { padding: 0 16px 56px; }

  /* topbar — wrap instead of squishing the nav buttons */
  .topbar { padding: 16px 0 8px; gap: 10px 12px; flex-wrap: wrap; }
  .brand { gap: 9px; flex: 0 0 auto; }
  .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand__name { font-size: 21px; }
  .topnav { gap: 10px; margin-left: auto; flex: 0 0 auto; }
  .topnav .btn { flex: 0 0 auto; }            /* keep full size, never shrink */
  .btn { font-size: 15px; padding: 11px 18px; }
  .btn-sm { font-size: 14.5px; padding: 10px 16px; }

  /* hero */
  .hero { gap: 22px; padding: 8px 0 24px; min-height: 0; }
  .hero__sub { font-size: 17px; }
  .hero__cta { width: 100%; gap: 12px; }
  .hero__cta .btn { flex: 1 1 100%; text-align: center; }
  .btn-lg { font-size: 17px; padding: 13px 22px; }
  .price-chip { width: 100%; justify-content: center; }
  .hero__stage { padding: 18px 6px 0; }
  .sw-wrap { width: 270px; }
  .press-hint { margin-top: 30px; white-space: normal; text-align: center; }

  /* sections */
  .steps { gap: 16px; margin-top: 20px; }
  .step { padding: 22px 20px; }
  .step h3 { font-size: 20px; }
  .closing, .team { padding: 24px 20px; gap: 24px; }
  .closing__left p, .team__left p { font-size: 16px; }
  .calc { padding: 18px; }

  /* footer */
  .foot__row { gap: 10px; }
  .foot__powered { margin-left: 0; }

  /* legal */
  .legal-card { padding: 22px 18px; }
}
