:root {
  --navy: #1f436f;
  --navy-deep: #183656;
  --cream: #f6efe2;
  --gold: #c9a45c;
  --green: #84b89b;
  --green-soft: #dcece3;
  --ink: #1e2732;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(24, 54, 86, .14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #f8f4ec, #edf4f0);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.home-screen { width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 24px 22px 40px; }
.home-topbar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.home-topbar .icon-button { margin-left: auto; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 18px 18px 18px 6px; background: var(--navy); color: var(--cream); font: 700 1.45rem Georgia, serif; box-shadow: 0 8px 20px rgba(24,54,86,.2); }
.brand-name { margin: 0; color: var(--navy-deep); font: 700 1.35rem Georgia, serif; }
.home-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; min-height: 560px; margin-top: 20px; padding: clamp(92px, 9vw, 118px) clamp(30px, 5vw, 68px) clamp(30px, 5vw, 68px); border: 1px solid rgba(201,164,92,.55); border-radius: 36px; background: linear-gradient(135deg, rgba(255,255,255,.98) 0 52%, rgba(220,236,227,.85) 100%); box-shadow: 0 22px 60px rgba(24,54,86,.16); }
.home-hero::before { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(201,164,92,.5); border-radius: 50%; top: -125px; right: 3%; }
.home-welcome-norm { position:absolute; z-index:3; top:8px; right:clamp(22px,4vw,54px); display:flex; flex-direction:row-reverse; align-items:center; gap:12px; }
.home-welcome-norm img { width:126px; height:142px; object-fit:contain; filter:drop-shadow(0 8px 9px rgba(24,54,86,.18)); }
.home-welcome-norm p { position:relative; min-width:max-content; margin:0; padding:11px 16px; border:1px solid rgba(201,164,92,.55); border-radius:18px 18px 5px 18px; background:#fffefb; color:var(--navy-deep); box-shadow:0 8px 20px rgba(24,54,86,.1); font:700 1.02rem/1.25 Georgia,serif; }
.home-copy { position: relative; z-index: 1; }
.home-copy, .home-copy h1, .home-promise, .home-mantra, .card, .period-sequence-identity { min-width:0; max-width:100%; overflow-wrap:break-word; }
.home-kicker { margin: 0 0 14px; color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-copy h1 { max-width: 620px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; }
.home-promise { max-width: 520px; margin: 22px 0 0; color: var(--navy-deep); font: 1.35rem/1.55 Georgia, serif; }
.home-mantra { max-width: 560px; margin: 22px 0 28px; padding-left: 18px; border-left: 3px solid var(--gold); font-size: 1.04rem; line-height: 1.7; color: #44505c; }
.home-primary { min-height: 52px; border: 0; border-radius: 999px; padding: 14px 26px; background: var(--navy); color: white; font-weight: 750; box-shadow: 0 10px 24px rgba(24,54,86,.2); }
.home-visual { position: relative; min-height: 430px; display: grid; align-items: center; }
.home-car-frame { width:100%; overflow: hidden; min-height: 330px; padding:0; border:0; color:inherit; font:inherit; cursor:pointer; border-radius: 30px 30px 90px 30px; background: linear-gradient(145deg, #eef3f1, #dbe9e1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 18px 38px rgba(24,54,86,.13); transition:transform .18s ease, box-shadow .18s ease; }
.home-car-frame:hover { transform:translateY(-2px); box-shadow:inset 0 0 0 2px rgba(201,164,92,.55), 0 20px 42px rgba(24,54,86,.17); }
.home-car-frame:focus-visible { outline:3px solid var(--gold); outline-offset:4px; }
.home-car-frame img { width: 100%; height: 430px; object-fit: cover; }
.home-car-placeholder { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--navy); }
.home-car-placeholder strong { font: 700 1.65rem Georgia, serif; }
.home-car-placeholder span:last-child { max-width: 260px; line-height: 1.5; }
.home-car-action { color:#1f6b53; text-decoration:underline; text-underline-offset:3px; }
.car-symbol { color: var(--gold); font-size: 4.5rem; line-height: 1; }
.home-norm { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; width: 100%; margin: 18px 0 20px; padding: 14px 26px 14px 14px; border: 1px solid rgba(201,164,92,.42); border-radius: 28px; background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,239,226,.92)); box-shadow: 0 12px 30px rgba(24,54,86,.11); color: var(--navy-deep); }
.home-norm p { margin: 0; line-height: 1.48; font-size:.95rem; }
.home-norm p strong { display:block; margin-bottom:4px; font:700 1.15rem Georgia,serif; }
.home-norm-image { width: 150px; height: 170px; object-fit: contain; image-rendering:auto; filter: drop-shadow(0 8px 9px rgba(24,54,86,.16)); animation: breathe 3s ease-in-out infinite; }
.home-norm-character { width: 72px !important; height: 86px !important; border-width: 3px !important; animation: none !important; }
.home-norm-character .eye { top: 20px; width: 15px; height: 18px; border-width: 2px; }
.home-norm-character .eye::after { width: 5px; height: 7px; left: 3px; top: 3px; }
.home-norm-character .eye-left { left: 15px; } .home-norm-character .eye-right { right: 15px; }
.home-norm-character .norm-belly { width: 40px; height: 34px; left: 13px; bottom: 10px; }
.practice-guidance { display:grid; grid-template-columns:320px 1fr; gap:42px; align-items:center; margin:34px 0 24px; padding:clamp(30px,5vw,54px); border:1px solid rgba(201,164,92,.5); border-radius:30px; background:linear-gradient(135deg,#fff 0%,rgba(246,239,226,.74) 100%); box-shadow:0 16px 38px rgba(24,54,86,.1); }
.practice-guidance-norm { text-align:center; color:var(--navy-deep); }
.practice-guidance-norm img { width:300px; height:340px; object-fit:contain; filter:drop-shadow(0 12px 15px rgba(24,54,86,.18)); }
.practice-guidance-norm p { margin:10px 0 0; font-size:1rem; line-height:1.6; }
.practice-guidance-norm strong { display:block; margin-bottom:6px; font:700 1.2rem Georgia,serif; }
.practice-guidance-copy h2 { margin:3px 0 18px; color:var(--navy-deep); font:700 clamp(1.65rem,3vw,2.25rem)/1.15 Georgia,serif; }
.practice-guidance-copy p:not(.step-label) { margin:0 0 17px; color:#40566b; font-size:1rem; line-height:1.75; }
.practice-guidance-copy p:last-child { margin-bottom:0; }
.sequence-guide { position:relative; display:grid; grid-template-columns:180px minmax(0,1fr); gap:0; align-items:center; margin:34px 0 24px; }
.sequence-guide-accent { position:relative; z-index:2; display:grid; place-items:center; width:210px; height:210px; margin-right:-30px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff 0%,#eef8f2 32%,#b9dec9 68%,#84b89b 100%); border:1px solid rgba(201,164,92,.7); box-shadow:0 16px 34px rgba(24,54,86,.14),inset 0 0 28px rgba(255,255,255,.8); }
.sequence-guide-sphere { color:var(--navy-deep); text-align:center; font:700 1rem/1.45 Georgia,serif; letter-spacing:.08em; }
.sequence-guide-paper { padding:clamp(30px,5vw,54px) clamp(28px,5vw,62px) clamp(30px,5vw,54px) clamp(58px,7vw,92px); border:1px solid rgba(201,164,92,.52); border-radius:12px 28px 28px 12px; background:linear-gradient(145deg,#fffefb,#fbf8f0); box-shadow:0 18px 42px rgba(24,54,86,.1); }
.sequence-guide-paper h2 { margin:3px 0 20px; color:var(--navy-deep); font:700 clamp(1.65rem,3vw,2.25rem)/1.18 Georgia,serif; }
.sequence-guide-paper p:not(.step-label) { margin:0 0 17px; color:#40566b; font-size:1rem; line-height:1.78; }
.sequence-guide-paper p:last-child { margin-bottom:0; }
.home-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.home-tile { min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; text-align: left; border: 1px solid rgba(201,164,92,.42); border-radius: 22px; padding: 18px; background: rgba(255,255,255,.92); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(24,54,86,.08); }
.home-tile span { color: var(--gold); font-weight: 800; font-size: .8rem; }
.home-tile strong { font: 700 1.18rem Georgia, serif; }
.home-tile small { color: #59646f; font-size: .84rem; line-height: 1.4; }
.home-footer { text-align: center; color: var(--navy); font-weight: 650; font-size: .86rem; }
.registration-screen { width:min(1040px,100%); min-height:100vh; margin:0 auto; padding:28px 18px 60px; }
.registration-header { margin-bottom:22px; }
.registration-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:20px; align-items:start; }
.registration-card h2,.order-summary h2 { margin-bottom:10px; }
.registration-card > p { color:#56626e; line-height:1.55; }
.registration-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:22px 0; }
.registration-fields .full-field { grid-column:1/-1; }
.registration-fields input { width:100%; border:1px solid #bcc8d0; border-radius:14px; padding:12px; background:#fff; }
.consent-row { display:grid; grid-template-columns:22px 1fr; gap:10px; align-items:start; font-weight:500; line-height:1.5; }
.consent-row input { width:18px; height:18px; margin-top:3px; accent-color:var(--navy); }
.payment-button { width:100%; margin-top:8px; }
.payment-return-button { width:100%; margin-top:12px; }
.order-summary { position:sticky; top:18px; overflow:hidden; background:linear-gradient(145deg,#fff,#f6efe2); }
.order-summary > p:not(.eyebrow):not(.price-note) { line-height:1.65; color:#4f5a65; }
.price-line { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:22px 0 8px; padding-top:18px; border-top:1px solid rgba(201,164,92,.55); color:var(--navy-deep); }
.price-line strong { font:700 1.8rem Georgia,serif; white-space:nowrap; }
.price-note { color:#5b6874; font-size:.9rem; line-height:1.5; }
.registration-norm { display:block; width:180px; height:190px; margin:12px auto -12px; object-fit:contain; filter:drop-shadow(0 8px 10px rgba(24,54,86,.15)); }
.home-footer p,.app-footer p { margin: 0; }
.app-footer { text-align:center; padding: 8px 0 26px; color: var(--muted); font-size:.86rem; }
.legal-links { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin-top:10px; }
.legal-links button { border:0; padding:3px 0; background:transparent; color:var(--navy); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.legal-links button:hover { color:var(--blue); }
.legal-overlay { position:fixed; inset:0; z-index:1000; padding:clamp(12px,4vw,38px); background:rgba(13,31,53,.72); overflow:auto; }
.legal-overlay[hidden] { display:none; }
.legal-dialog { width:min(860px,100%); margin:0 auto; background:#fff; border-radius:24px; box-shadow:0 26px 80px rgba(10,28,48,.28); overflow:hidden; }
.legal-header { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 26px 18px; background:linear-gradient(135deg,#eef3fb,#faf8f4); border-bottom:1px solid var(--line); }
.legal-header h2 { margin:4px 0 0; color:var(--navy); }
.legal-close { width:42px; height:42px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--navy); font-size:1.7rem; line-height:1; cursor:pointer; }
.legal-content { padding:24px 26px 34px; color:var(--ink); }
.legal-content h3 { margin:25px 0 8px; color:var(--navy); font-size:1.05rem; }
.legal-content h3:first-of-type { margin-top:12px; }
.legal-content p { line-height:1.65; }
.legal-content a { color:var(--blue); overflow-wrap:anywhere; }
.legal-date { color:var(--muted); font-size:.88rem; }
body.legal-open { overflow:hidden; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.home-return { color: var(--navy-deep); background: var(--green); border-color: var(--gold); font-weight:800; box-shadow:0 7px 18px rgba(24,54,86,.22); }
.home-return::before { content:"⌂"; margin-right:7px; font-size:1.12em; }

.app-shell { width: min(960px, 100%); margin: 0 auto; padding: 24px 16px 64px; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-navigation { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 18px; padding:10px; border:1px solid rgba(201,164,92,.42); border-radius:20px; background:rgba(248,244,236,.96); box-shadow:0 8px 22px rgba(24,54,86,.1); backdrop-filter:blur(10px); }
.app-nav-button { min-height:44px; border:1px solid transparent; border-radius:14px; padding:9px 10px; background:transparent; color:var(--navy-deep); font-weight:750; }
.app-nav-button[aria-current="page"] { border-color:var(--gold); background:var(--navy); color:#fff; }
.home-return { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; }
[data-view][hidden] { display:none !important; }
.eyebrow { margin: 0 0 5px; color: var(--navy); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; font-size: .78rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; color: var(--navy-deep); font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { margin: 0 0 14px; color: var(--navy-deep); }
.card { background: rgba(255,255,255,.94); border: 1px solid rgba(201,164,92,.45); border-radius: 24px; box-shadow: var(--shadow); padding: 24px; }
.intention-card, .mantra-card, .period-program-card, .guided-audio-card { margin-bottom: 18px; }
.norm-moment { display:grid; grid-template-columns:150px 1fr; align-items:center; gap:20px; margin:0 0 18px; padding:16px 24px 16px 12px; border:1px solid rgba(201,164,92,.5); border-radius:24px; background:linear-gradient(135deg,#fff,#f6efe2 64%,#e9f3ee); box-shadow:var(--shadow); }
.norm-moment img { width:150px; height:150px; object-fit:contain; image-rendering:auto; filter:drop-shadow(0 9px 10px rgba(24,54,86,.15)); }
.norm-moment strong { display:block; margin-bottom:7px; color:var(--navy); font:700 1.18rem Georgia,serif; }
.norm-moment p { margin:0; color:#3e4b58; font:1.03rem/1.6 Georgia,serif; }
.norm-moment-finish { grid-template-columns:1fr 170px; margin-top:18px; padding:16px 12px 16px 24px; border-color:rgba(132,184,155,.75); background:linear-gradient(135deg,#eef6f1,#fff 58%,#f6efe2); }
.norm-moment-finish img { width:170px; height:160px; }
.intention-card { border-left: 6px solid var(--green); }
.mantra-card { border-left: 6px solid var(--navy); background: var(--cream); }
.intention-card p { margin-bottom: 0; font-size: 1.08rem; line-height: 1.7; }
.mantra-card p { margin-bottom: 0; font-size: 1.08rem; line-height: 1.7; font-style: italic; }
.period-program-card { border-left:6px solid var(--gold); }
.guided-audio-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,420px); align-items:center; gap:24px; border-left:6px solid var(--green); background:linear-gradient(135deg,#fff,#f6efe2 70%,#e9f3ee); }
.guided-audio-card p { margin:0; color:#465566; line-height:1.65; }
.guided-audio-card .step-label { margin-bottom:6px; color:var(--green-dark); }
.guided-audio-card h2 { margin-bottom:10px; }
.guided-audio-card audio { width:100%; min-height:54px; accent-color:var(--green); }
.guided-audio-files { display:grid; gap:14px; }
.guided-audio-part { display:grid; gap:7px; }
.guided-audio-part strong { color:var(--navy-deep); font-size:.92rem; }
.guided-audio-norm { display:flex; justify-content:center; align-items:center; margin:-4px 0 14px; }
.guided-audio-norm img { width:190px; height:210px; object-fit:contain; filter:drop-shadow(0 12px 15px rgba(24,54,86,.18)); animation:breathe 3s ease-in-out infinite; }
.period-program-intro { margin:-2px 0 18px; color:#56626e; line-height:1.65; }
.period-sequence-list { display:grid; gap:10px; }
.period-sequence-item { overflow:hidden; border:1px solid rgba(201,164,92,.5); border-radius:16px; background:#fff; }
.period-sequence-item summary { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; list-style:none; }
.period-sequence-item summary::-webkit-details-marker { display:none; }
.period-sequence-item[open] summary { background:var(--cream); }
.period-sequence-position { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--navy); color:#fff; font-weight:800; font-size:.82rem; }
.period-sequence-identity { display:grid; gap:4px; color:var(--navy-deep); }
.period-sequence-intention { max-width:760px; color:#465566; font-size:.94rem; font-weight:500; line-height:1.5; }
.period-sequence-number { color:var(--navy); font-weight:800; letter-spacing:.05em; overflow-wrap:anywhere; }
.period-sequence-hint { color:#66727d; font-size:.82rem; font-weight:700; }
.period-sequence-definition { margin:0; padding:2px 18px 18px 70px; color:#3e4b58; line-height:1.65; }
.day-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; padding: 14px 0 4px; border-top: 1px solid rgba(201,164,92,.35); }
.day-controls label { margin: 0; }
.day-controls select { min-width: 100px; border: 1px solid #bcc8d0; border-radius: 999px; padding: 10px 14px; background: var(--white); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, .8fr); gap: 18px; align-items: start; }
.practice-card { text-align: center; background: var(--navy); color: var(--white); }
.practice-card h2 { color: var(--cream); font-size: 1.8rem; }
.reading-rule, .focus-text { line-height: 1.65; max-width: 620px; margin: 0 auto 18px; }
.sequence-count { color: var(--green-soft); font-weight: 600; }
.sequence-number { margin: 20px 0 10px; font-weight: 800; letter-spacing: .10em; color: var(--cream); font-size: clamp(2rem, 8vw, 3.4rem); overflow-wrap: anywhere; }
.definition { margin: 18px auto; max-width: 660px; padding: 18px; border-radius: 16px; background: rgba(246,239,226,.10); line-height: 1.65; }
.timer { margin: 28px 0 18px; font-size: 3.5rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.timer-duration-control { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; margin:24px auto -14px; }
.timer-duration-control label { margin:0; color:var(--cream); font-weight:700; }
.timer-duration-control select { min-width:130px; border:1px solid rgba(255,255,255,.45); border-radius:999px; padding:10px 34px 10px 14px; background:#fff; color:var(--navy); font:inherit; font-weight:750; cursor:pointer; }
.timer-duration-control select:disabled { cursor:not-allowed; opacity:.65; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.primary-button, .secondary-button, .icon-button, .upload-button {
  border-radius: 999px; padding: 11px 18px; border: 1px solid var(--gold); transition: transform .15s ease, background .15s ease;
}
.primary-button { background: var(--green); border-color: var(--green); color: var(--navy-deep); font-weight: 700; }
.secondary-button { background: transparent; color: inherit; }
.secondary-button.home-return { color:var(--white); background:var(--navy); border-color:var(--gold); }
.icon-button, .upload-button { background: var(--navy); color: var(--white); font-weight: 700; }
button:hover, .upload-button:hover { transform: translateY(-1px); }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sequence-nav { margin-top: 20px; }
.norm-card { text-align: center; position: sticky; top: 16px; }
.norm-stage { min-height: 220px; display: grid; place-items: center; }
#normImage { max-width: 210px; max-height: 240px; animation: breathe 3s ease-in-out infinite; }
.norm-proverb { margin:0 0 10px; color:var(--navy-deep); font:1rem/1.55 Georgia,serif; }
.norm-status { margin:0; color:#5b6874; font-size:.86rem; line-height:1.45; }
.norm-fallback { position: relative; width: 150px; height: 180px; border-radius: 48% 52% 44% 56%; background: var(--green); border: 5px solid var(--cream); box-shadow: 0 14px 30px rgba(31,67,111,.2); animation: breathe 3s ease-in-out infinite; }
.eye { position: absolute; top: 46px; width: 27px; height: 32px; border-radius: 50%; background: var(--white); border: 4px solid var(--navy); }
.eye::after { content: ""; position: absolute; width: 9px; height: 12px; background: var(--navy); border-radius: 50%; left: 7px; top: 7px; }
.eye-left { left: 33px; } .eye-right { right: 33px; }
.norm-belly { position: absolute; width: 82px; height: 72px; border-radius: 50%; left: 29px; bottom: 25px; background: #c7ff6b; opacity: .85; }
.norm-stage.celebrate { animation: hop .55s ease 2; }
.journal-card, .photo-card, .reminder-card { margin-top: 18px; }
label { display: block; font-weight: 650; margin-bottom: 8px; }
textarea, input[type="time"], input[type="text"], input[type="number"] { width: 100%; border: 1px solid #bcc8d0; border-radius: 14px; padding: 12px; background: var(--white); }
.journal-card .button-row { justify-content: flex-start; margin-top: 12px; }
.status { min-height: 1.4em; color: var(--navy); font-weight: 650; }
.download-link { display: inline-block; color: var(--navy); margin-top: 10px; }
.vehicle-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vehicle-options { grid-column: 1 / -1; }
.vehicle-buttons { justify-content: flex-start; margin-top: 16px; }
.step-label { display:inline-block; margin:0 0 10px; padding:6px 11px; border-radius:999px; background:var(--cream); color:var(--navy); font-size:.8rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.vehicle-introduction { margin:-2px 0 20px; color:#56626e; line-height:1.6; }
.car-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.photo-help { margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.journey-objective-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,360px); align-items:center; gap:22px; margin-top:18px; }
.journey-objective-copy p:last-child { margin-bottom:0; color:var(--muted); }
.journey-objective-frame { min-height:190px; padding:0; overflow:hidden; border:1px solid var(--gold); border-radius:20px; background:linear-gradient(145deg,#f8f3e9,#eef5f1); color:var(--navy); font:inherit; font-weight:750; cursor:pointer; }
.journey-objective-frame img { display:block; width:100%; height:220px; object-fit:cover; }
.journey-objective-frame span { display:grid; min-height:190px; place-items:center; padding:24px; }
.car-photo { position: relative; }
.car-photo img { width: 100%; height: 180px; object-fit: cover; border-radius: 18px; border: 1px solid var(--gold); }
.car-photo button { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 999px; padding: 7px 10px; background: rgba(24,54,86,.9); color: var(--white); }
.reminder-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; max-width: 520px; }
.reminder-form-label { grid-column:1 / -1; font-weight:700; }
.reminder-time-fields { display:grid; grid-template-columns:auto minmax(76px,1fr) auto minmax(76px,1fr); gap:8px; align-items:center; }
.reminder-time-fields label { font-size:.9rem; font-weight:700; }
.reminder-time-fields select { min-height:46px; font-size:1.05rem; background:#fff; }
.reminder-list { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.reminder-item { display:flex; align-items:center; gap:10px; padding:9px 10px 9px 14px; border:1px solid rgba(201,164,92,.65); border-radius:999px; background:var(--cream); color:var(--navy); font-weight:750; }
.reminder-item button { border:0; border-radius:999px; padding:5px 9px; background:var(--navy); color:white; }
.reminder-empty { color:#66727d; font-style:italic; }
.reminder-activate { margin-top:2px; }

@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.02); } }
@keyframes hop { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(3deg); } }

@media (max-width: 760px) {
  .home-screen { padding: 16px 14px 30px; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding: 24px 22px 42px; border-radius: 28px; }
  .home-welcome-norm { position:relative; top:auto; right:auto; grid-column:1; justify-self:center; transform:none; margin:-10px 0 -6px; }
  .home-welcome-norm img { width:102px; height:116px; }
  .home-welcome-norm p { min-width:0; max-width:210px; font-size:.9rem; }
  .home-copy h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .home-promise { font-size: 1.15rem; }
  .home-visual { min-height: 320px; }
  .home-car-frame, .home-car-placeholder { min-height: 280px; }
  .home-car-frame img { height: 340px; }
  .home-norm { grid-template-columns:120px 1fr; padding:12px 18px 12px 10px; }
  .home-norm-image { width:120px; height:138px; }
  .practice-guidance { grid-template-columns:230px 1fr; gap:28px; }
  .sequence-guide { grid-template-columns:145px minmax(0,1fr); }
  .sequence-guide-accent { width:165px; height:165px; }
  .sequence-guide-paper { padding-left:56px; }
  .practice-guidance-norm img { width:220px; height:250px; }
  .home-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guided-audio-card { grid-template-columns:1fr; }
  .guided-audio-norm img { width:165px; height:185px; }
  .practice-grid { grid-template-columns: 1fr; }
  .norm-card { position: static; }
  .reminder-form { grid-template-columns: 1fr; }
  .reminder-time-fields { grid-template-columns:auto 1fr auto 1fr; }
  .app-header { align-items: flex-start; }
  .app-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vehicle-form { grid-template-columns: 1fr; }
  .journey-objective-card { grid-template-columns:1fr; }
  .journey-objective-frame img { height:210px; }
  .registration-layout { grid-template-columns:1fr; }
  .order-summary { position:static; }
  .vehicle-options { grid-column: auto; }
  .norm-moment,.norm-moment-finish { grid-template-columns:105px 1fr; padding:13px 16px 13px 8px; }
  .norm-moment img,.norm-moment-finish img { width:105px; height:120px; }
}

@media (max-width: 430px) {
  .home-copy h1 { font-size:clamp(2rem,11vw,2.8rem); line-height:1.06; hyphens:auto; }
  .home-promise { font-size:1.05rem; line-height:1.48; }
  .home-mantra { font-size:.98rem; line-height:1.58; }
  .card { padding:20px 17px; }
  .home-dashboard { grid-template-columns: 1fr; }
  .home-tile { min-height: 104px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .home-norm { grid-template-columns:105px 1fr; width:100%; margin-top:12px; padding:12px; }
  .home-norm-image { width:105px; height:120px; }
  .practice-guidance { grid-template-columns:1fr; padding:24px 20px; }
  .sequence-guide { display:block; margin:26px 0 20px; }
  .sequence-guide-accent { width:116px; height:116px; margin:0 auto -34px; }
  .sequence-guide-sphere { font-size:.78rem; }
  .sequence-guide-paper { padding:54px 20px 24px; border-radius:24px; }
  .sequence-guide-paper h2 { font-size:1.55rem; line-height:1.22; }
  .sequence-guide-paper p:not(.step-label) { font-size:1rem; line-height:1.68; }
  .practice-guidance-norm { display:grid; grid-template-columns:155px 1fr; align-items:center; text-align:left; }
  .practice-guidance-norm img { width:155px; height:180px; }
  .norm-moment,.norm-moment-finish { grid-template-columns:90px 1fr; gap:12px; }
  .norm-moment img,.norm-moment-finish img { width:90px; height:105px; }
  .registration-fields { grid-template-columns:1fr; }
  .registration-fields .full-field { grid-column:auto; }
  .period-sequence-item summary { grid-template-columns:38px minmax(0,1fr); }
  .period-sequence-hint { grid-column:2; }
  .period-sequence-definition { padding:2px 14px 16px; }
}

.language-picker { margin-left:auto; display:grid; gap:5px; color:var(--navy); font-size:.72rem; font-weight:800; letter-spacing:.04em; }
.language-options { display:flex; flex-wrap:wrap; gap:5px; max-width:430px; }
.language-options button { border:1px solid rgba(31,67,111,.25); border-radius:999px; background:#fff; color:var(--navy); padding:6px 9px; font:inherit; font-size:.76rem; letter-spacing:0; cursor:pointer; white-space:nowrap; }
.language-options button:hover, .language-options button:focus-visible { border-color:var(--gold); outline:2px solid rgba(201,164,92,.22); outline-offset:1px; }
.language-options button.is-active { background:var(--navy); color:#fff; border-color:var(--navy); }
.language-picker-app { margin-left:0; color:inherit; }
@media (max-width: 560px) {
  .home-topbar { flex-wrap:wrap; }
  .language-picker { order:3; width:100%; margin:8px 0 0; }
  .language-options { max-width:none; }
  .language-picker-app { order:0; width:100%; margin:0; }
  .app-header { flex-direction:column; }
  .header-actions { width:100%; justify-content:space-between; }
  .home-return { min-height:44px; padding-inline:20px; }
}
