/* Partner landing, signed-out front of the portal. Type, input, button, logo and
   footer are taken from mildcook.app (css/landing.css), on a plain white page. */
@font-face { font-family: 'Druk Wide'; src: url('../Druk-Wide.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('Inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

body.on-landing { background: #FFF; }
body.on-landing main { padding: 0; }
.lp { --ink: #000; --muted: #888; --field: rgb(244, 244, 246); --yellow: #FFF066; --tile: #FFF066; --soft: #F4F5F0;
  overflow-x: clip; background: #FFF; color: var(--ink); font-family: 'Inter', sans-serif; }
.lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.lp-title { margin: 0; color: var(--ink); font-family: 'Druk Wide', sans-serif; font-weight: 500; text-align: center; letter-spacing: 0; text-wrap: balance; }
.lp-text { margin: 0 auto; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 20px; text-align: center; }

/* Header, as on the site */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.lp-logo { color: var(--ink); font-family: 'Druk Wide', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.lp .lp-signin { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); box-shadow: none; color: #FFF; font-size: 14px; font-weight: 600; }
.lp .lp-signin:hover:not(:disabled) { background: #222; }

.lp-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lp-brand-tag { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.lp-top-actions { display: flex; align-items: center; gap: 4px; }
/* Get the App and its QR dialog, as on mildcook.app (css/get-mild-app.css). The tab is desktop only there too. */
.lp .lp-get-app { display: none; height: 48px; padding: 0 28px; border: 0; border-radius: 18px; background: #000; box-shadow: none; color: #FFF; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.lp .lp-get-app:hover:not(:disabled) { background: var(--tile); color: #000; }
.lp-download { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 40px; background: rgba(0, 0, 0, .68); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-download-dialog { width: min(880px, calc(100vw - 80px)); max-height: calc(100dvh - 80px); overflow: auto; padding: 40px; border-radius: 28px; background: #FFF; text-align: center; }
.lp-download-dialog h2 { font-size: 30px; line-height: 1.15; }
.lp-download-dialog p { margin: 16px auto 28px; color: #7E7E7E; font-size: 16px; line-height: 1.45; }
.lp-download-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 760px; margin: 0 auto 28px; }
.lp-download-codes a { display: flex; justify-content: center; padding: 14px; border-radius: 24px; }
.lp-download-codes img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; }
.lp-download-dialog .lp-get-app { display: inline-flex; align-items: center; justify-content: center; min-width: 168px; height: 54px; }
.lp .lp-signin { background: var(--soft); color: #000; }
.lp .lp-signin:hover:not(:disabled) { background: #E9EAE4; }
@media (min-width: 769px) { .lp .lp-top-actions .lp-get-app { display: inline-flex; align-items: center; margin-left: 8px; } }

/* Language switcher, as on mildcook.app */
.lp-lang { position: relative; }
.lp .lang-btn { height: 40px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; box-shadow: none; color: #000; font-family: 'Druk Wide', sans-serif; font-size: 13px; font-weight: 500; }
.lp .lang-btn:hover:not(:disabled) { background: var(--soft); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1000; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 26px; border-radius: 10px; background: #FFF; box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.lang-item { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-family: 'Druk Wide', sans-serif; font-size: 12px; font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap; }
.lang-item:hover { background: var(--soft); }
.lang-item.active { background: var(--soft); color: #000; }
.lang-item.cjk, .lp .lang-btn.cjk { font-family: 'Inter', sans-serif; font-weight: 700; }
@media (max-width: 400px) { .lp-brand-tag { display: none; } .lang-menu { padding: 12px; right: -56px; } }

/* Hero */
.lp-hero { position: relative; padding-bottom: 56px; }
.lp-hero-copy { position: relative; z-index: 2; padding-top: 28px; text-align: center; }
.lp-for { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--tile); font-size: 13px; font-weight: 600; line-height: 18px; }
.lp-hero h1 { font-size: 30px; line-height: 35px; }
.lp-hero .lp-text { max-width: 550px; margin-top: 14px; }

/* Email row: the site's waitlist field and button */
.lp-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 24px auto 0; }
.lp .lp-form label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp .lp-form input { width: 100%; min-width: 0; height: 54px; margin: 0; padding: 0 16px; border: 0; border-radius: 14px; background: var(--field); box-shadow: none; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500; line-height: 28px; }
.lp .lp-form input::placeholder { color: hsl(0 0% 54%); }
.lp .lp-form button { flex: none; height: 54px; margin: 0; padding: 0 24px; border: 0; border-radius: 14px; background: var(--yellow); box-shadow: none; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; white-space: nowrap; }
.lp .lp-form button:hover:not(:disabled) { background: var(--yellow); }

.lp-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 16px; font-weight: 600; line-height: 24px; text-align: center; }
.lp-stripe { display: block; width: auto; height: 28px; }

/* The real Mild paywall (NativeMildPaywallViewController) with a code applied */
.lp-phone-caption { margin: 48px 0 16px; font-size: 16px; font-weight: 600; line-height: 24px; text-align: center; text-wrap: balance; }
.lp-phone { position: relative; z-index: 3; width: 100%; max-width: 330px; margin: 0 auto; padding: 8px; border-radius: 52px; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.lp-pw { position: relative; display: flex; flex-direction: column; padding: 56px 14px 18px; border-radius: 44px; background: #F4F5F0; color: #000; }
.lp-pw-island { position: absolute; top: 10px; left: 50%; width: 88px; height: 26px; border-radius: 13px; background: #000; transform: translateX(-50%); }
.lp-pw-close { position: absolute; top: 50px; left: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.lp-pw-logo { display: grid; place-items: center; width: 48px; height: 48px; margin: 4px auto 0; border-radius: 15px; background: var(--tile); }
.lp-pw-title { margin-top: 16px; font-family: 'Druk Wide', sans-serif; font-size: 21px; font-weight: 500; line-height: 26px; text-align: center; }
.lp-pw-sub { margin-top: 10px; font-size: 12px; line-height: 15px; text-align: center; }
.lp-pw-benefits { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; line-height: 17px; }
.lp-pw-benefits li { display: flex; align-items: center; gap: 8px; }
.lp-pw-benefits span, .lp-pw-radio { display: grid; flex: none; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #000; }
.lp-pw-plan { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; margin-top: 10px; padding: 0 14px; border: 1px solid #E0E0D8; border-radius: 14px; background: #FFF; font-size: 15px; }
.lp-pw-plan.on { margin-top: 16px; border: 2px solid #000; }
.lp-pw-plan:not(.on) .lp-pw-radio { background: none; box-shadow: inset 0 0 0 1.5px #C7C7C0; }
.lp-pw-plan em { margin-left: auto; color: #6C6C66; font-size: 13px; font-style: normal; }
.lp-pw-plan em b { color: #000; font-size: 15px; }
.lp-pw-badge { position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 9px; background: var(--tile); font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; }
.lp-pw-code { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; margin-top: 12px; padding: 0 22px 0 14px; border: 2px solid #000; border-radius: 14px; background: var(--tile); font-size: 15px; }
.lp-pw-code span { font-size: 17px; font-weight: 700; letter-spacing: .08em; }
/* The phone's animation (landing/phone-demo.js): the markup alone is the finished state */
.lp-pw-code { transition: background-color .25s ease, border-color .25s ease; }
.lp-pw-code span.lp-pw-placeholder { display: none; color: #6C6C66; font-weight: 500; letter-spacing: 0; }
.lp-pw.is-empty .lp-pw-code { border-color: #E0E0D8; background: #FFF; }
.lp-pw.is-empty:not(.is-typing) .lp-pw-digits { display: none; }
.lp-pw.is-empty:not(.is-typing) .lp-pw-code span.lp-pw-placeholder { display: inline; }
.lp-pw.is-typing .lp-pw-code { border-color: #000; }
.lp-pw.is-typing .lp-pw-digits::after { content: ''; display: inline-block; width: 2px; height: 18px; margin-left: 2px; background: #000; vertical-align: -3px; animation: lp-caret .7s steps(2) infinite; }
.lp-pw-status { transition: opacity .25s ease; }
.lp-pw.is-empty .lp-pw-status { opacity: 0; }
.lp-pw-plan em b { display: inline-block; }
.lp-pw.is-offer .lp-pw-plan em b { animation: lp-price .45s ease-out; }
.lp-pw-pill { position: absolute; top: 200px; left: 50%; z-index: 5; display: flex; align-items: center; gap: 11px; width: max-content; max-width: calc(100% - 16px); padding: 13px 22px 13px 13px; border-radius: 999px; background: var(--tile); box-shadow: 0 18px 44px rgba(0, 0, 0, .24); color: #000; opacity: 0; transform: translate(-50%, 0) scale(.6); pointer-events: none; }
.lp-pw-pill b { display: block; font-size: 27px; font-weight: 800; line-height: 30px; }
.lp-pw-pill-text { display: block; font-size: 15px; font-weight: 600; line-height: 19px; }
.lp-pw-pill-check { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #000; }
.lp-pw-pill-check svg { width: 18px; height: 14px; }
.lp-pw.is-sent .lp-pw-pill { animation: lp-send 3.6s cubic-bezier(.2, .8, .2, 1) forwards; }
.lp-pw.is-sent .lp-pw-cta { animation: lp-press .35s ease-out; }
@keyframes lp-caret { 50% { opacity: 0; } }
@keyframes lp-price { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes lp-press { 40% { transform: scale(.97); } }
@keyframes lp-send { 0% { opacity: 0; transform: translate(-50%, 300px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 280px) scale(.8); } 40%, 88% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
.lp-pw-status { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 18px; text-align: center; }
.lp-pw-cancel { margin-top: 8px; font-size: 12px; line-height: 16px; text-align: center; }
.lp-pw-legal { margin-top: 8px; color: #6C6C66; font-size: 10px; line-height: 13px; text-align: center; }
.lp-pw-cta { display: grid; place-items: center; height: 48px; margin-top: 12px; border-radius: 16px; background: #000; color: #FFF; font-size: 16px; font-weight: 600; }
.lp-callout { display: none; }
.lp-phone + .lp-browser { margin-top: 40px; }

/* Druk Wide has no CJK glyphs: the system face, bold enough to carry the same weight */
:lang(zh) .lp-title, :lang(ja) .lp-title, :lang(ko) .lp-title, :lang(zh) .lp-pw-title, :lang(ja) .lp-pw-title, :lang(ko) .lp-pw-title,
:lang(zh) .lp-steps h3, :lang(ja) .lp-steps h3, :lang(ko) .lp-steps h3 { font-family: 'Inter', -apple-system, 'Hiragino Sans', 'PingFang SC', 'Apple SD Gothic Neo', 'Noto Sans CJK JP', sans-serif; font-weight: 800; }

/* Sections */
.lp-section { padding-block: 56px; }
.lp-section-title { font-size: 26px; line-height: 32px; }
.lp-section .lp-text { max-width: 550px; margin-top: 14px; }

/* Steps */
.lp-steps { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; text-align: center; }
.lp-steps li { display: flex; flex-direction: column; align-items: center; padding: 24px 20px 28px; border-radius: 24px; background: var(--soft); }
.lp-step-visual { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; margin-bottom: 20px; }
.lp-step-mail { width: 100%; padding: 14px 16px; border-radius: 14px; background: #FFF; color: hsl(0 0% 54%); font-size: 15px; font-weight: 500; line-height: 20px; text-align: left; }
.lp-digits { display: flex; gap: 6px; }
.lp-digits span { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 12px; background: var(--tile); font-family: 'Druk Wide', sans-serif; font-size: 20px; line-height: 1; }
.lp-step-money { font-family: 'Druk Wide', sans-serif; font-size: 28px; line-height: 1; }
.lp-step-tag { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 20px; }
.lp-steps h3 { margin: 6px 0 8px; font-family: 'Druk Wide', sans-serif; font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: 0; }
.lp-steps p { margin: 0; font-size: 15px; line-height: 22px; }

/* Earnings */
.lp-earn { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; text-align: center; }
.lp-earn li { padding: 28px 16px; border-radius: 24px; background: var(--soft); }
.lp-earn li:last-child { background: var(--tile); }
.lp-earn strong { display: block; font-family: 'Druk Wide', sans-serif; font-size: 34px; font-weight: 500; line-height: 40px; }
.lp-earn span { display: block; margin-top: 6px; font-size: 15px; line-height: 22px; }

/* The real creator dashboard as a clickable demo with sample data */
.lp-browser { position: relative; z-index: 2; overflow: hidden; margin-top: 40px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 24px; background: #FFF; box-shadow: 0 24px 70px rgba(0, 0, 0, .12); }
.lp-demo { display: block; width: 100%; height: 680px; border: 0; background: var(--soft); }
/* Safari on macOS Tahoe, white: the visitor sees this as a real page at its domain */
.lp-browser-bar { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, .08); background: #FFF; color: #6E6E73; }
.lp-browser-side { display: flex; align-items: center; gap: 18px; min-width: 0; }
.lp-browser-side-end { justify-content: flex-end; }
.lp-lights { display: flex; gap: 8px; }
.lp-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lp-lights i:nth-child(2) { background: #FEBC2E; }
.lp-lights i:nth-child(3) { background: #28C840; }
.lp-browser-icons { display: none; align-items: center; gap: 14px; }
.lp-browser-address { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 999px; background: #F2F2F4; color: #1D1D1F; font-size: 13px; font-weight: 500; line-height: 1; }
.lp-browser-address svg { color: #6E6E73; }
.lp-browser + .lp-dash-note { margin-top: 40px; }
.lp-dash-note { margin: 12px 0 0; color: hsl(0 0% 49%); font-size: 12px; line-height: 16px; text-align: center; }

/* Footer, as on the site */
.lp-foot { padding-block: 32px; background: hsl(72 2% 96%); }
.lp-foot-row { display: flex; flex-direction: column; gap: 14px; }
.lp-foot-brand { color: var(--ink); font-family: 'Druk Wide', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-foot nav a { color: var(--muted); font-size: 16px; text-decoration: none; }
.lp-foot nav a:hover { opacity: .7; }
.lp-foot p { max-width: 62em; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }

@media (max-width: 420px) { .lp-steps li { padding-inline: 10px; } .lp-steps p { font-size: 13.5px; line-height: 20px; } }
@media (min-width: 640px) {
  .lp-form { flex-direction: row; }
  .lp .lp-form input { flex: 1 1 auto; }
}
@media (min-width: 860px) {
  .lp-steps, .lp-earn { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .lp-wrap { padding-inline: 40px; }
  .lp-logo, .lp-foot-brand { font-size: 26px; }
  .lp-hero { padding-bottom: 96px; }
  .lp-hero-copy { padding-top: 56px; }
  .lp-for { margin-bottom: 24px; font-size: 15px; }
  .lp-hero h1 { font-size: 72px; line-height: 86px; }
  .lp .lp-text { font-size: 16px; line-height: 26px; }
  .lp-hero .lp-text { margin-top: 18px; }
  .lp-form { max-width: 720px; margin-top: 32px; }
  .lp .lp-form input, .lp .lp-form button { height: 62px; border-radius: 18px; }
  .lp .lp-form button { padding: 0 34px; font-size: 18px; }
  .lp-section { padding-block: 96px; }
  .lp-section-title { font-size: 56px; line-height: 64px; }
  .lp-section .lp-text { margin-top: 18px; }
  .lp-steps, .lp-earn { margin-top: 56px; }
  .lp-steps li { padding: 36px 24px 40px; }
  .lp-steps h3 { font-size: 20px; line-height: 26px; }
  .lp-steps p { font-size: 16px; line-height: 24px; }
  .lp-earn li { padding: 44px 16px; }
  .lp-earn strong { font-size: 48px; line-height: 56px; }
  .lp-earn span { font-size: 16px; }
  .lp-browser { margin-top: 64px; }
  .lp-browser + .lp-dash-note { margin-top: 56px; }
  .lp-phone-caption { display: none; }
  .lp-phone { margin-top: 64px; }
  .lp-phone + .lp-browser { margin-top: 64px; }
  .lp-callout { display: block; position: absolute; top: 50%; padding: 10px 16px; border-radius: 999px; background: #000; color: #FFF; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; transform: translateY(-50%); }
  .lp-callout::after { content: ''; position: absolute; top: 50%; width: 44px; height: 2px; background: #000; }
  .lp-callout-right { left: calc(100% + 70px); }
  .lp-callout-right::after { right: 100%; }
  .lp-callout-left { right: calc(100% + 70px); }
  .lp-callout-left::after { left: 100%; }
  .lp-demo { height: 720px; }
  .lp-browser-icons { display: flex; }
  .lp-foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
#code-sent-to { margin-top: 16px; }
