/* The phone app. Everything is scoped under .phone so it can sit inside the presentation page. */
/* iPhone-sized frame: 393 x 852 logical screen, plus a 12px bezel. Scaled to fit by the page. */
.phone {
  position: relative; width: 417px; height: 876px; flex: none; border-radius: 62px; background: var(--bg);
  border: 12px solid #141D24; overflow: hidden;
  box-shadow: 0 0 0 1.5px #5E6B74, 0 0 0 4px #1B262E, 0 50px 90px -40px rgba(20, 35, 46, .55), 0 18px 30px -18px rgba(20, 35, 46, .35);
  display: flex; flex-direction: column; font-family: var(--font); color: var(--ink);
  font-size: 0.9375rem; line-height: var(--leading); letter-spacing: var(--tracking); text-align: left;
}
.phone.full { width: 100%; max-width: 480px; height: 100%; border: 0; border-radius: 0; box-shadow: none; margin: 0 auto; }

.phone .statusbar { flex: none; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; position: relative; color: #141D24; }
.phone .clock { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.phone .sys { display: flex; gap: 6px; align-items: center; }
.phone .sys svg { fill: currentColor; }
.phone .island { position: absolute; top: 11px; left: calc(50% - 63px); width: 126px; height: 37px; border-radius: 20px; background: #000; }
.phone .home-indicator { position: absolute; bottom: 8px; left: calc(50% - 70px); width: 140px; height: 5px; border-radius: 3px; background: #141D24; z-index: 6; pointer-events: none; }
.phone.full .statusbar, .phone.full .home-indicator { display: none; }
.phone button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
.phone input { font: inherit; color: inherit; }
.phone h1, .phone h2, .phone h3 { text-wrap: balance; margin: 0; line-height: 1.3; font-weight: 500; }
.phone p { margin: 0; }
.phone :focus-visible { outline: 3px solid var(--bondi); outline-offset: 2px; border-radius: 8px; }

.phone .screen { flex: 1; overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: none; overscroll-behavior: contain; }
.phone .screen::-webkit-scrollbar, .phone .sheet::-webkit-scrollbar { display: none; }
.phone .sheet { scrollbar-width: none; }
.phone.full .screen { padding-top: 20px; }
.phone .tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); padding: 6px 8px 28px; }
.phone.full .tabbar { padding-bottom: 18px; }
.phone .tabbar[hidden] { display: none; }
.phone .tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 0.72rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-radius: 12px; }
.phone .tab svg { width: 22px; height: 22px; }
.phone .tab[aria-current="page"] { color: var(--yale); }
.phone .tab .dot { min-width: 18px; height: 18px; border-radius: 9px; background: var(--emerald); color: var(--ink); font-size: 0.66rem; display: inline-grid; place-items: center; padding: 0 5px; margin-left: 4px; }

.phone .stack { display: grid; gap: 10px; }
.phone .stack.tight { gap: 6px; }
.phone .topline { display: flex; justify-content: space-between; align-items: center; }
.phone .hello { font-size: 0.8125rem; color: var(--ink-2); }
.phone .title { font-size: 1.5rem; font-weight: 500; }
.phone .section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.phone .section-h h2 { font-size: 1.0625rem; }
.phone .section-h span { font-size: 0.78rem; color: var(--ink-2); }

.phone .card { background: var(--surface); border-radius: 20px; padding: 16px; border: 1px solid var(--line); }
.phone .card-h { font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.phone .flush { margin: 0; }
.phone .pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; }
.phone .chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #EEF5E4; color: var(--ink); font-size: 0.75rem; font-weight: 500; }

.phone .cycle { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center; }
.phone .cycle svg { width: 116px; height: 116px; }
.phone .cycle h3 { font-size: 1.125rem; margin-top: 6px; }
.phone .cycle p { margin-top: 4px; font-size: 0.8125rem; color: var(--ink-2); }

.phone .checkin h3 { font-size: 0.9375rem; }
.phone .checkin p { margin: 2px 0 12px; font-size: 0.8125rem; color: var(--ink-2); }
.phone .checkin p.flush { margin: 2px 0 0; }
.phone .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone .seg button { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 0; font-weight: 500; font-size: 0.84rem; }
.phone .seg button:hover { border-color: var(--emerald); }

.phone .recipe { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; text-align: left; width: 100%; }
.phone .recipe:hover { border-color: var(--emerald); }
.phone .thumb { width: 84px; height: 84px; border-radius: 14px; position: relative; overflow: hidden; }
.phone .thumb::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.85), rgba(255,255,255,.35) 60%, rgba(255,255,255,.15)); }
.phone .recipe h3 { font-size: 0.9rem; }
.phone .why { font-size: 0.78rem; color: var(--ink-2); margin-top: 2px; }
.phone .meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.phone .meta .in { background: var(--lime); }

.phone .btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 500; font-size: 0.9rem; background: var(--accent); color: #fff; }
.phone .btn:hover { background: var(--baltic); }
.phone .btn:disabled { opacity: .6; cursor: default; }
.phone .btn.ghost { background: transparent; color: var(--yale); border: 1.5px solid var(--yale); }
.phone .btn.ghost:hover { background: #E4EEF5; }
.phone .btn.small { padding: 7px 14px; font-size: 0.8125rem; }
.phone .btn.block { width: 100%; }
.phone .link { border: 0; background: none; color: var(--bondi); font-weight: 500; font-size: 0.8125rem; padding: 4px 0; }
.phone .link.center { justify-self: center; }
.phone .plain { border: 0; background: none; text-align: left; padding: 0; }

.phone .slot { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.phone .day { text-align: center; }
.phone .day b { display: block; font-size: 0.8125rem; font-weight: 500; }
.phone .day span { font-size: 0.72rem; color: var(--ink-2); }
.phone .slot-body { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.phone .slot-body .thumb { width: 52px; height: 52px; border-radius: 12px; }
.phone .slot-body h3 { font-size: 0.84rem; }
.phone .slot-body .why { font-size: 0.72rem; }
.phone .slot-actions { display: grid; gap: 2px; justify-items: end; }
.phone .slot-actions button { border: 0; background: none; color: var(--bondi); font-size: 0.75rem; font-weight: 500; padding: 2px 4px; }
.phone .slot-actions button.rm { color: var(--ink-2); font-weight: 400; }
.phone .empty { border: 1.5px dashed #BBD3B0; background: transparent; border-radius: 18px; padding: 18px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; width: 100%; text-align: left; }
.phone .empty:hover { border-color: var(--emerald); color: var(--yale); }

.phone .progress { height: 8px; border-radius: 4px; background: #E3ECD9; overflow: hidden; }
.phone .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--light-green), var(--emerald), var(--teal)); border-radius: 4px; }
.phone .aisle h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cerulean); margin: 0 0 6px; }
.phone .item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #EDF2E6; cursor: pointer; }
.phone .item:last-child { border-bottom: 0; }
.phone .item input { width: 20px; height: 20px; accent-color: var(--ocean); margin: 0; }
.phone .item span { font-size: 0.875rem; }
.phone .item em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phone .item.done span, .phone .item.done em { text-decoration: line-through; color: #8FA2AD; }

.phone .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDF2E6; font-size: 0.875rem; }
.phone .row:last-child { border-bottom: 0; }
.phone .row span:first-child { color: var(--ink-2); }
.phone .row span:last-child { font-weight: 500; text-align: right; }
.phone .small-print { font-size: 0.75rem; color: var(--ink-2); margin: 0; }

.phone .ob { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.phone .ob-hero { border-radius: 24px; padding: 28px 22px; background: linear-gradient(160deg, var(--lime), var(--willow) 45%, var(--ocean)); }
.phone .ob-hero h1 { font-size: 1.625rem; }
.phone .ob-hero p { margin-top: 10px; font-size: 0.875rem; }
.phone .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phone .steps i { height: 4px; border-radius: 2px; background: #DCE7D2; }
.phone .steps i.on { background: var(--teal); }
.phone .ob h2 { font-size: 1.3rem; }
.phone .ob .sub { margin-top: -10px; font-size: 0.84rem; color: var(--ink-2); }
.phone .options { display: grid; gap: 10px; }
.phone .opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 14px; text-align: left; display: grid; gap: 2px; }
.phone .opt b { font-weight: 500; font-size: 0.9rem; }
.phone .opt small { color: var(--ink-2); font-size: 0.78rem; }
.phone .opt[aria-pressed="true"], .phone .tog[aria-pressed="true"] { border-color: var(--teal); background: #EAF6F2; color: var(--yale); }
.phone .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.phone .tog { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 0.8125rem; font-weight: 500; }
.phone .field { display: grid; gap: 6px; }
.phone .label { font-size: 0.8125rem; font-weight: 500; }
.phone input[type="date"] { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); }
.phone .stepper { display: flex; align-items: center; gap: 14px; }
.phone .stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.125rem; }
.phone .stepper output { font-size: 1.25rem; font-weight: 500; min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.phone .ob-foot { margin-top: auto; display: grid; gap: 8px; }
.phone .privacy { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.78rem; color: var(--ink-2); background: #EEF5E4; border-radius: 14px; padding: 10px 12px; }

.phone .sheet-wrap { position: absolute; inset: 0; background: rgba(46, 68, 83, .35); display: flex; align-items: flex-end; z-index: 5; }
.phone .sheet { background: var(--bg); width: 100%; max-height: 92%; border-radius: 28px 28px 0 0; overflow-y: auto; animation: con-up .22s ease-out; }
@keyframes con-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.phone .sheet-hero { height: 170px; position: relative; }
.phone .sheet-hero::after { content: ""; position: absolute; width: 120px; height: 120px; left: calc(50% - 60px); top: 25px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,.35) 60%, rgba(255,255,255,.1)); }
.phone .close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.125rem; line-height: 1; }
.phone .sheet-body { padding: 18px 20px 28px; display: grid; gap: 16px; }
.phone .sheet-body h2 { font-size: 1.3rem; }
.phone .fits { background: #EAF6F2; border-radius: 16px; padding: 12px 14px; font-size: 0.84rem; }
.phone .fits b { display: block; font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #217E82; margin-bottom: 2px; }
.phone .sheet-body h3 { font-size: 0.9375rem; margin-bottom: 6px; }
.phone .ing { margin: 0; padding: 0; list-style: none; }
.phone .ing li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #E6EEDD; font-size: 0.875rem; }
.phone .ing li em { font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phone .method { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.875rem; }
.phone .actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.phone .icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.phone .icon-btn svg { width: 20px; height: 20px; }
.phone .icon-btn[aria-pressed="true"] { background: var(--lime); border-color: var(--willow); }
.phone .cooked { border: 0; background: none; color: var(--bondi); font-weight: 500; font-size: 0.84rem; justify-self: start; padding: 0; }

.phone .toast { position: absolute; left: 20px; right: 20px; bottom: 92px; background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 14px; font-size: 0.8125rem; z-index: 9; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.phone .toast.show { opacity: 1; transform: none; }
.phone .confirm { background: #FDF3EE; border: 1px solid #F0D2C3; border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; font-size: 0.84rem; }
.phone .confirm div { display: flex; gap: 8px; flex-wrap: wrap; }
.phone .btn.danger { background: #A23B2A; }
.phone .btn.danger:hover { background: #862F21; }

@media (prefers-reduced-motion: reduce) { .phone .sheet { animation: none; } .phone .toast { transition: none; } }

/* ---------- cartoon layer ---------- */
.phone .illo { display: block; width: 100%; height: auto; }
.phone .thumb { display: grid; place-items: center; }
.phone .thumb::after { content: none; }
.phone .thumb .illo { width: 82%; }
.phone .banner { border-radius: 22px; overflow: hidden; }
.phone .sound-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--yale); display: grid; place-items: center; }
.phone .sound-btn[aria-pressed="true"] { background: var(--yale); color: #fff; border-color: var(--yale); }

.phone .tasks { display: grid; gap: 10px; }
.phone .task { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.phone .task-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--emerald); background: var(--surface); display: grid; place-items: center; color: #fff; padding: 0; }
.phone .task.done .task-check { background: var(--emerald); }
.phone .task-body { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px 8px 8px; text-align: left; width: 100%; }
.phone .task-body:hover { border-color: var(--emerald); }
.phone .task.done .task-body { opacity: .6; }
.phone .task.done .task-text b { text-decoration: line-through; }
.phone .task-text { display: grid; line-height: 1.35; }
.phone .task-text small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; color: #217E82; font-weight: 500; }
.phone .task-text b { font-weight: 500; font-size: 0.875rem; }
.phone .task-text span { font-size: 0.75rem; color: var(--ink-2); }
.phone .mini { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.phone .mini .illo { width: 100%; height: 100%; object-fit: cover; }
.phone .mini svg[viewBox="0 0 120 108"] { width: 80%; height: auto; }
.phone .mini.night { background: var(--yale); }
.phone .mini svg[viewBox="0 0 320 200"] { width: 160%; height: auto; max-width: none; }

.phone .sounds { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.phone .sounds b { display: block; font-weight: 500; font-size: 0.9rem; }
.phone .sounds span:not(.mini) { font-size: 0.75rem; color: var(--ink-2); }

/* quiz */
.phone .q-head { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.phone .q-back { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); padding: 0; }
.phone .q-progress { height: 8px; border-radius: 4px; background: #E1EBD6; overflow: hidden; }
.phone .q-progress.big { height: 10px; }
.phone .q-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--light-green), var(--emerald), var(--teal)); transition: width .4s ease; }
.phone .q-count { font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phone .ob-art { border-radius: 24px; overflow: hidden; }
.phone .ob-art.small { max-width: 78%; margin: 0 auto; width: 100%; }
.phone .ob-title { font-size: 1.5rem; text-align: center; }
.phone .ob-lead { text-align: center; color: var(--ink-2); font-size: 0.9rem; margin-top: -6px; }
.phone .ob-q { font-size: 1.3rem; }
.phone .btn.big { padding: 15px 20px; font-size: 1rem; }
.phone .opt { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; }
.phone .opt-text { display: grid; }
.phone .opt-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C5D8BA; display: grid; place-items: center; color: #fff; }
.phone .opt-mark.sq { border-radius: 7px; }
.phone .opt[aria-pressed="true"] .opt-mark { background: var(--teal); border-color: var(--teal); }
.phone input.text { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); font-size: 1rem; }
.phone .center-col { justify-content: center; }
.phone .build { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.phone .build li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: 0.9rem; color: #9AACB6; transition: color .3s; }
.phone .build li span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #D5E3CB; display: grid; place-items: center; color: #fff; }
.phone .build li.now { color: var(--ink); }
.phone .build li.now span { border-color: var(--teal); border-top-color: transparent; animation: con-spin .8s linear infinite; }
.phone .build li.ok { color: var(--ink); }
.phone .build li.ok span { background: var(--emerald); border-color: var(--emerald); }
@keyframes con-spin { to { transform: rotate(360deg); } }
.phone .result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone .result-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; display: grid; }
.phone .result-stats b { font-size: 1.25rem; font-weight: 500; color: var(--yale); }
.phone .result-stats span { font-size: 0.7rem; color: var(--ink-2); }
.phone .because { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.phone .because li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 0.84rem; }
.phone .because li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); margin-top: 7px; }

/* dark info screens */
.phone.is-dark { background: var(--yale); }
.phone.is-dark .statusbar { color: #fff; }
.phone.is-dark .home-indicator { background: #fff; }
.phone.is-dark .screen { color: #F1F7EA; }
.phone.is-dark .ob-lead { color: #CFE2EA; }
.phone.is-dark .q-back { color: #fff; }
.phone.is-dark .q-count { color: #CFE2EA; }
.phone.is-dark .q-progress { background: rgba(255,255,255,.18); }
.phone.is-dark .btn { background: var(--lime); color: var(--yale); }

.phone .sheet-hero.art { display: grid; place-items: center; height: auto; padding: 18px 0 8px; }
.phone .sheet-hero.art::after { content: none; }
.phone .sheet-hero.art > svg[viewBox="0 0 120 108"] { width: 46%; }
.phone .sheet-hero.art > svg[viewBox="0 0 320 200"] { width: 100%; }
.phone .eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: #217E82; font-weight: 500; }
.phone .para { font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .phone .build li.now span { animation: none; } .phone .q-progress i { transition: none; } }

/* ---------- hand-drawn layer ---------- */
.phone { background: linear-gradient(172deg, #E3F3D2 0%, #F4F8EC 34%, #EEF7F2 100%); }
.phone .scribble { position: absolute; top: 0; left: 0; width: 100%; height: 360px; z-index: 0; pointer-events: none; }
.phone .statusbar, .phone .screen { position: relative; z-index: 1; }
.phone .screen { padding-bottom: 112px; }
.phone .hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; line-height: 1.05; }
.phone .title.hand { font-size: 2.1rem; }
.phone .section-h h2.hand { font-size: 1.6rem; }
.phone .ob-title.hand { font-size: 2.2rem; }

.phone .card, .phone .recipe, .phone .slot-body, .phone .opt, .phone .tog, .phone .seg button, .phone .empty,
.phone .result-stats div, .phone .confirm, .phone .tile, .phone .privacy, .phone input.text, .phone input[type="date"],
.phone .stepper button, .phone .icon-btn, .phone .sound-btn, .phone .fits {
  border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--pen);
}
.phone .recipe:hover, .phone .tile-body:hover, .phone .opt:hover { transform: translate(-1px, -1px); }
.phone .btn { border: 2px solid var(--ink); box-shadow: var(--pen); }
.phone .btn.ghost { background: var(--surface); }
.phone .btn:active, .phone .opt:active, .phone .tile-body:active { transform: translate(2px, 3px); box-shadow: none; }
.phone .thumb, .phone .slot-body .thumb { border: 2px solid var(--ink); border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px; }
.phone .cycle { background: linear-gradient(135deg, #F3FADF, #DFF2EA); }
.phone .opt[aria-pressed="true"], .phone .tog[aria-pressed="true"] { background: #D6F0E2; }
.phone .chip { border: 1.5px solid var(--ink); background: var(--surface); }
.phone .meta .in { background: var(--lime); }
.phone .pill { border: 1.5px solid var(--ink); }

.phone .hey { display: grid; grid-template-columns: 54px 1fr 44px; gap: 12px; align-items: center; }
.phone .avatar { width: 54px; height: 54px; display: block; }
.phone .hey-name { font-size: 1.9rem; }
.phone .hey-q { font-size: 0.84rem; color: var(--ink-2); margin-top: 2px; }
.phone .sound-btn { width: 44px; height: 44px; border-radius: 50%; }

.phone .mood { background: linear-gradient(135deg, #FFFFFF, #F1F8E6); }
.phone .mood h3 { font-size: 0.9rem; margin-bottom: 10px; }
.phone .faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.phone .face-btn { border: 0; background: none; padding: 4px 0; display: grid; justify-items: center; gap: 4px; border-radius: 14px; }
.phone .face { width: 44px; height: 44px; transition: transform .15s; }
.phone .face-btn span { font-size: 0.66rem; color: var(--ink-2); }
.phone .face-btn:hover .face { transform: translateY(-2px) rotate(-4deg); }
.phone .face-btn[aria-pressed="true"] .face { transform: scale(1.14); }
.phone .face-btn[aria-pressed="true"] span { color: var(--ink); font-weight: 500; }
.phone .mood-msg { font-size: 0.8rem; color: var(--ink-2); margin-top: 10px; }

.phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone .tile { position: relative; overflow: hidden; }
.phone .tile.lime { background: #EAF6C8; } .phone .tile.mint { background: #D6F0E2; } .phone .tile.sky { background: #D3ECF3; }
.phone .tile.night { background: var(--yale); color: #F1F7EA; }
.phone .tile-body { border: 0; background: none; text-align: left; width: 100%; padding: 12px 12px 14px; display: grid; gap: 2px; align-content: start; min-height: 172px; }
.phone .tile-art { display: block; height: 70px; margin-bottom: 6px; }
.phone .tile-art svg { height: 100%; width: auto; }
.phone .tile small { font-size: 0.64rem; text-transform: uppercase; letter-spacing: .08em; color: #217E82; font-weight: 500; }
.phone .tile.night small { color: var(--lime); }
.phone .tile b { font-weight: 500; font-size: 0.9rem; line-height: 1.25; }
.phone .tile-body > span:last-child { font-size: 0.74rem; line-height: 1.35; color: var(--ink-2); }
.phone .tile.night .tile-body > span:last-child { color: #CFE2EA; }
.phone .tile-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); display: grid; place-items: center; color: #fff; padding: 0; }
.phone .tile.done .tile-check { background: var(--emerald); color: var(--ink); }
.phone .tile.done .tile-body { opacity: .55; }
.phone .tile.done b { text-decoration: line-through; }

.phone .tabbar { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 4; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); padding: 7px; gap: 4px; box-shadow: 0 10px 24px -10px rgba(46,68,83,.6); backdrop-filter: none; }
.phone .tab { position: relative; height: 46px; border-radius: 999px; color: #E6EEF2; padding: 0; place-items: center; }
.phone .tab svg { width: 22px; height: 22px; }
.phone .tab[aria-current="page"] { background: var(--lime); color: var(--ink); }
.phone .tab .dot { position: absolute; top: 4px; right: 14px; margin: 0; min-width: 18px; height: 18px; border: 1.5px solid var(--ink); }
.phone.full .tabbar { bottom: max(16px, env(safe-area-inset-bottom)); padding-bottom: 7px; }
.phone .toast { bottom: 100px; }

.phone .ob-hero-art { width: 72%; margin: 6px auto 0; background: radial-gradient(circle at 50% 55%, rgba(217,237,146,.9), rgba(217,237,146,0) 68%); }
.phone .ob-art { border: 2px solid var(--ink); box-shadow: var(--pen); }
.phone .ob-art.small { border: 0; box-shadow: none; }
.phone.is-dark { background: var(--yale); }
.phone.is-dark .scribble { opacity: .25; }
.phone.is-dark .btn { border-color: var(--lime); box-shadow: 2px 3px 0 var(--lime); }

.phone .consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.8rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--pen); padding: 10px 12px; cursor: pointer; }
.phone .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.phone .link.inline { display: block; margin-left: auto; font-size: 0.75rem; padding: 0; }

.phone .example { display: grid; gap: 6px; background: #FFF6D9; }
.phone .example b { font-weight: 500; }
.phone .example span { font-size: 0.8rem; color: var(--ink-2); }
.phone .example .btn { justify-self: start; }

/* picked states */
.phone .mood.picked { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.phone .mood-face .face { width: 48px; height: 48px; }
.phone .mood.picked b { display: block; font-weight: 500; font-size: 0.9rem; }
.phone .mood.picked span:not(.mood-face) { font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }
.phone .all-done { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, #EAF6C8, #D6F0E2); }
.phone .all-done .mini-mascot svg { width: 72px; height: 72px; }
.phone .all-done b { display: block; font-size: 1.6rem; line-height: 1.1; }
.phone .all-done span { font-size: 0.8rem; color: var(--ink-2); display: block; }
.phone .all-done .link { padding-top: 6px; }
.phone .recipe-wrap { position: relative; }
.phone .recipe-wrap .recipe { padding-right: 76px; }
.phone .quick-add { position: absolute; right: 12px; bottom: 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 0.75rem; font-weight: 500; padding: 4px 10px; box-shadow: 2px 2px 0 var(--ink); }
.phone .quick-add:active { transform: translate(2px, 2px); box-shadow: none; }
.phone .basket summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.phone .basket summary::-webkit-details-marker { display: none; }
.phone .basket summary span::before { content: "▸ "; }
.phone .basket[open] summary span::before { content: "▾ "; }
.phone .basket[open] summary { margin-bottom: 6px; }

/* sound on/off switch inside the app */
.phone .hey { grid-template-columns: 54px 1fr auto; }
.phone .sound-toggle { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); box-shadow: var(--pen); padding: 6px 10px; color: var(--yale); font-size: 0.75rem; font-weight: 500; }
.phone .sound-toggle svg { width: 18px; height: 18px; }
.phone .sound-toggle:active { transform: translate(2px, 3px); box-shadow: none; }
.phone .mini-switch { position: relative; width: 28px; height: 16px; border-radius: 999px; border: 2px solid var(--ink); background: #E3ECD9; transition: background .2s; }
.phone .mini-switch i { position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); transition: transform .2s; }
.phone .sound-toggle[aria-checked="true"] .mini-switch { background: var(--emerald); }
.phone .sound-toggle[aria-checked="true"] .mini-switch i { transform: translateX(12px); }
.phone .sound-toggle .st { min-width: 20px; }
@media (prefers-reduced-motion: reduce) { .phone .mini-switch, .phone .mini-switch i { transition: none; } }

/* recipe sheet as lists */
.phone .fits .reasons { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.phone .fits .reasons li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 0.84rem; }
.phone .fits .reasons li::before { content: ""; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--emerald); border: 1.5px solid var(--ink); }
.phone .cook-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--pen); padding: 12px 14px 6px; }
.phone .cook-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.phone .cook-h h3 { margin: 0; }
.phone .cook-h span { font-size: 0.72rem; color: var(--ink-2); }
.phone .ing-list, .phone .steps-list { list-style: none; margin: 0; padding: 0; }
.phone .ing-row { width: 100%; display: grid; grid-template-columns: 24px 64px 1fr; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 9px 0; border-bottom: 1.5px dashed #D5E3CB; }
.phone .ing-list li:last-child .ing-row { border-bottom: 0; }
.phone .ing-row .tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); background: var(--surface); }
.phone .ing-row.on .tick { background: var(--emerald); }
.phone .ing-row .qty { justify-self: start; font-size: 0.75rem; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #EAF6C8; border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone .ing-row .nm { font-size: 0.875rem; }
.phone .ing-row.on .nm, .phone .ing-row.on .qty { opacity: .5; text-decoration: line-through; }
.phone .steps-list { display: grid; gap: 10px; }
.phone .step { width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: var(--pen); padding: 10px 12px; }
.phone .step .n { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.4rem; background: var(--lime); color: var(--yale); }
.phone .step .t { font-size: 0.875rem; line-height: 1.45; }
.phone .step.on { background: #EEF5E4; box-shadow: none; transform: translate(2px, 3px); }
.phone .step.on .n { background: var(--emerald); color: var(--ink); }
.phone .step.on .t { opacity: .55; text-decoration: line-through; }
.phone .contains { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.75rem; color: var(--ink-2); }
.phone .contains > span:first-child { margin-right: 2px; }

.phone .swapping { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: #FFF6D9; }
.phone .swapping b { font-weight: 500; font-size: 0.9rem; }
.phone .swapping span { grid-column: 1; font-size: 0.78rem; color: var(--ink-2); }
.phone .swapping .link { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
