/* MenuVirtual landing page. Colors and fonts come from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
    overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 32px); }

/* Buttons */
.btn {
    display: inline-block;
    padding: .85em 1.5em;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-ink);
    font: 700 1.0625rem/1.2 var(--display);
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--hero { background: var(--hero-btn-bg); color: var(--hero-btn-ink); font-size: 1.1875rem; }
.btn--nav { padding: .65em 1.15em; font-size: .9375rem; white-space: nowrap; }
.btn--section { margin-top: 40px; }
.btn--closing { background: var(--navy); color: #FFFFFF; font-size: 1.1875rem; flex: none; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
    padding-block: 6px;
}
.logo { display: block; flex: none; }
.logo img { width: 150px; height: 60px; object-fit: contain; }
.logo__dark { display: none; }
[data-theme='dark'] .logo__light { display: none; }
[data-theme='dark'] .logo__dark { display: block; }

.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-weight: 500; font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 4px 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.theme-toggle, .lang summary {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 700 .875rem/1 var(--body);
    cursor: pointer;
}
.theme-toggle__sun { display: none; }
[data-theme='dark'] .theme-toggle__sun { display: block; }
[data-theme='dark'] .theme-toggle__moon { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(7, 9, 32, .22);
}
.lang a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang a:hover { background: var(--surface); }
.lang a[aria-current] { font-weight: 700; }

.notice { padding: 12px 0; background: var(--surface); font-weight: 500; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    gap: 56px;
    align-items: center;
    padding-block: 72px 80px;
}
.hero h1 {
    font-size: clamp(2.75rem, 6.2vw, 5.25rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.03em;
    font-variation-settings: 'opsz' 96;
    text-wrap: balance;
}
.hero__text { max-width: 34em; margin-top: 24px; font-size: 1.1875rem; }
.hero .btn { margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: 1rem; }

/* Price demo */
.demo__control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 24px;
}
.demo__control label { grid-column: 1 / -1; font: 700 1.125rem/1.25 var(--display); }
.demo__status { font-weight: 500; }

.stepper {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 2px solid currentColor;
    border-radius: 999px;
}
.stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: 700 1.375rem/1 var(--body);
    cursor: pointer;
}
.stepper button:hover { background: rgba(127, 127, 127, .2); }
.stepper__field { display: inline-flex; align-items: baseline; padding-inline: 4px; font: 700 1.125rem/1 var(--display); }
.stepper input {
    width: 3.7em;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.demo__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

/* The printed menu stays paper-colored in both themes. */
.paper {
    padding: 22px 20px 26px;
    background: var(--sheet);
    color: var(--navy);
    transform: rotate(-2.5deg);
    box-shadow: 0 16px 34px rgba(7, 9, 32, .28);
}
.paper figcaption {
    padding-bottom: 12px;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--navy);
    font: 700 1.125rem/1.2 var(--display);
}
.paper__list li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: .9375rem;
    line-height: 1.3;
}
.paper__list li + li { margin-top: 18px; }
.paper__dish { min-width: 0; }
.paper__price { position: relative; flex: none; font-weight: 700; }

.leader { flex: 1 1 12px; min-width: 12px; border-bottom: 2px dotted currentColor; opacity: .45; transform: translateY(-.25em); }

.strike {
    position: absolute;
    left: -4px;
    top: 50%;
    width: calc(100% + 8px);
    height: 16px;
    transform: translateY(-50%);
    overflow: visible;
    pointer-events: none;
}
.strike path {
    fill: none;
    stroke: var(--chili);
    stroke-width: 2.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.paper__hand {
    position: absolute;
    right: -2px;
    bottom: 80%;
    color: var(--chili);
    font: 700 1.3125rem/1 Caveat, 'Segoe Script', cursive;
    white-space: nowrap;
    transform: rotate(-5deg);
}
.paper__price.is-unchanged .strike,
.paper__price.is-unchanged .paper__hand { visibility: hidden; }

/* The one unprompted moment: the correction is drawn once on load. */
.strike path { animation: draw .6s ease-out .5s backwards; }
.paper__hand { animation: appear .25s ease-out 1s backwards; }
.paper__price.is-redrawn .strike path { animation: draw .35s ease-out; }
.paper__price.is-redrawn .paper__hand { animation: appear .2s ease-out .15s backwards; }

@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes appear { from { opacity: 0; } }

.phone {
    width: 100%;
    max-width: 290px;
    justify-self: end;
    padding: 9px;
    background: var(--bezel);
    border-radius: 34px;
    box-shadow: 0 20px 44px rgba(7, 9, 32, .34);
}
[data-theme='dark'] .phone { outline: 1px solid rgba(246, 243, 232, .22); }
.phone__screen {
    min-height: 400px;
    padding: 30px 14px 18px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 26px;
}
.phone__place { font: 800 1.1875rem/1.15 var(--display); }
.phone__tabs {
    display: flex;
    gap: 14px;
    margin: 14px 0 6px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
}
.phone__tabs span { padding-bottom: 6px; }
.phone__tabs .is-active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--saffron); }
.phone__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
    line-height: 1.3;
}
.phone__list strong, .phone__list small { display: block; }
.phone__list small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.phone__price { align-self: flex-start; flex: none; padding: 1px 5px; margin-right: -5px; border-radius: 6px; font-weight: 700; }
.phone__price.is-updated { animation: flash .9s ease-out; }
@keyframes flash { from { background: var(--saffron); color: var(--navy); } }

/* Sections */
.section { padding-block: 88px; }
.section--rule { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); }

/* The step marks echo the corner squares of a QR code. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.steps__mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border: 9px solid var(--ink);
    background: var(--mark-bg);
    color: var(--ink);
    font: 800 1.75rem/1 var(--display);
}
.steps p { margin-top: 8px; color: var(--muted); max-width: 30em; }

.features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.features__lead { position: sticky; top: 104px; }
.features__big {
    margin: 28px 0 14px;
    font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--display);
}
.features__lead > p:last-child { color: var(--muted); max-width: 30em; }
.features__list li { padding-block: 22px; border-top: 1px solid var(--line); }
.features__list li:first-child { padding-top: 0; border-top: 0; }
.features__list p { margin-top: 6px; color: var(--muted); max-width: 38em; }
.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--tag-bg);
    font: 700 .8125rem/1.5 var(--body);
    vertical-align: .12em;
    white-space: nowrap;
}

/* Pricing reads like a page of a menu. */
.plans { margin-top: 44px; }
.plans > li + li { margin-top: 44px; }
.plans__head { display: flex; align-items: baseline; gap: 12px; }
.plans__head h3 { font-size: clamp(1.625rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; }
.plans__price { flex: none; font: 800 clamp(1.625rem, 4vw, 2.25rem)/1.1 var(--display); }
.plans__price small { font: 500 1rem/1 var(--body); color: var(--muted); }
.plans__desc { margin-top: 8px; max-width: 42em; }
.plans__features { margin-top: 12px; columns: 2; column-gap: 32px; color: var(--muted); font-size: 1rem; }
.plans__features li { position: relative; padding-left: 20px; margin-bottom: 4px; break-inside: avoid; }
.plans__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    background: var(--ink);
}

.faq { margin-top: 32px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    font: 700 1.1875rem/1.3 var(--display);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { max-width: 42em; padding-bottom: 20px; color: var(--muted); }

/* Saffron in both themes, so the page ends on the brand color. */
.closing { padding-block: 72px; background: var(--saffron); color: var(--navy); }
.closing__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing p { margin-top: 8px; font-size: 1.1875rem; }

.site-footer { padding-block: 48px; font-size: 1rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px 88px; }
.site-footer__grid > div:first-child { margin-right: auto; }
.site-footer p { margin-top: 8px; color: var(--muted); }
.site-footer h2 { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.site-footer li + li { margin-top: 6px; }
.site-footer li a { text-underline-offset: 3px; }

/* Tablet */
@media (max-width: 1040px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 56px 64px; }
    .demo { max-width: 620px; }
}

@media (max-width: 860px) {
    .site-nav { order: 3; width: 100%; padding-bottom: 6px; }
    .section { padding-block: 64px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .features { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .features__lead { position: static; }
    .closing__row { flex-direction: column; align-items: flex-start; }
}

/* Phones */
@media (max-width: 560px) {
    .site-actions .btn--nav { display: none; }
    .logo img { width: 125px; height: 50px; }
    .hero__grid { padding-block: 40px 48px; }
    .hero__text { font-size: 1.0625rem; }
    .demo__control { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .demo__stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .paper { transform: rotate(-1.5deg); padding-bottom: 72px; }
    .phone { justify-self: center; max-width: 280px; margin-top: -52px; position: relative; }
    .phone__screen { min-height: 0; }
    .plans__features { columns: 1; }
    .plans__head { flex-wrap: wrap; gap: 2px 10px; }
    .plans__head .leader { display: none; }
    .plans__price { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
