/* Apple-style polish (17 Nov 2026), loaded after brand.css on the booking, cancel and My lessons pages.
   Same colours and layout. What changes: the system font stack (SF Pro on iPhone and Mac), bigger corner radii, soft layered
   shadows, 48-54px tap targets, calmer hierarchy and quick, reduced-motion-safe transitions. */
:root {
  --shadow: 0 1px 2px rgba(20, 10, 30, .05), 0 10px 30px rgba(20, 10, 30, .07);
  --shadow-soft: 0 1px 2px rgba(20, 10, 30, .04), 0 6px 20px rgba(20, 10, 30, .06);
  --purple-on-dark: #D9B8E3;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] { --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3); }
body, button, input, textarea, select { font-family: var(--font-ui); }
body { -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; letter-spacing: -.003em; -webkit-tap-highlight-color: transparent; }
button, a, input, summary { touch-action: manipulation; }
h1, h2, h3, .event, .title { letter-spacing: -.02em; }

/* Cards and panels */
.card { border-radius: 24px; border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.summary, .tray, .bk, .fee-warn, .form-err { border-radius: 16px; }
.summary { box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.brand-bar { padding-top: max(12px, env(safe-area-inset-top)); }
.page { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 760px) { .card { border-radius: 22px; } .page { padding-top: 16px; } }

/* Buttons: capsule shape kept, taller and softer */
.primary { min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 650; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease; }
.primary:active { transform: scale(.985); }
.primary:disabled { box-shadow: none; }
.ghost { min-height: 48px; font-size: 16px; transition: background-color .18s ease, transform .12s ease; }
.ghost:active { transform: scale(.985); }
.link { min-height: 48px; }
.slot { height: 54px; border-radius: 14px; font-size: 16px; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
.slot:active { transform: scale(.985); }
.day { transition: background-color .15s ease; }

/* Fields */
.form input, .form textarea { border-radius: 14px; padding: 14px 16px; font-size: 17px; min-height: 52px; border-color: color-mix(in srgb, var(--field-line) 70%, transparent); transition: border-color .15s ease, box-shadow .15s ease; }
.form textarea { min-height: 112px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-t2); }
.form label { font-size: 15px; }
.field-note { font-weight: 400; }

/* Hierarchy on the confirmation screens */
.confirm h2 { font-size: 26px; margin-top: 16px; }
.lead { font-size: 17px; }
.sum-title { font-size: 19px; letter-spacing: -.01em; }
.done-actions .primary, .done-actions .ghost { min-height: 50px; }
.theme-btn { min-height: 48px; }

/* Preview ribbon (only ever added by the preview Worker) */
.preview-ribbon { position: sticky; top: 0; z-index: 50; padding: 8px 14px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  background: #fff4e0; color: #8a5a00; border-bottom: 1px solid #f0d9a8; }
html[data-theme="dark"] .preview-ribbon { background: #33270f; color: #f5c26b; border-color: #5a4515; }

@media (prefers-reduced-motion: reduce) {
  .primary, .ghost, .slot, .day, .form input, .form textarea { transition: none !important; }
  .primary:active, .ghost:active, .slot:active { transform: none; }
}
html[data-motion="off"] .primary, html[data-motion="off"] .ghost, html[data-motion="off"] .slot { transition: none !important; }
