/* Responsive repairs and motion share the same content and accessible controls. */
:root { --muted: #68715f; }
.site-header.is-scrolled { background: #f8f7f2f5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.landing-shell > .site-header.is-scrolled { position: fixed; background: #f8f7f2f5; }
.site-header { transition: background .3s; }
body { word-break: keep-all; overflow-wrap: anywhere; }
main, section, article, aside, figure, .workspace-main, .workspace-content { min-width: 0; }
.hero-copy > p.hero-lead { font-size: 18px; letter-spacing: -.02em; }
.hero-copy h1.platform-hero-title { transform: translateY(calc(var(--hero-progress, 0) * -16px)); }
.hero-image-frame > img { will-change: transform; }
.platform-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 80px; padding-block: 100px; }
.platform-intro { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin: 36px 0 0; }
.platform-intro h2 { font-size: clamp(32px, 3.25vw, 46px); line-height: 1.5; }
.platform-intro > p { font-size: 16px; line-height: 1.85; margin: 0; }
.platform-progress { display: flex; align-items: center; gap: 16px; width: 210px; font: 14px var(--sans); color: var(--muted); margin-top: 30px; }
.platform-progress > i { height: 2px; flex: 1; background: #dce0d2; }
.platform-progress b { display: block; height: 100%; width: calc(var(--story-progress, .2) * 100%); background: var(--green); transition: width .45s var(--ease); }
.platform-module-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; border: 0; background: transparent; }
.platform-module, .platform-module:first-child, .platform-module:last-child {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 24px;
  min-height: 160px; padding: 28px; border: 1px solid #dedfd4; border-radius: 8px; background: #fafbf6;
  transition: border-color .3s, background .3s, transform .35s var(--ease), box-shadow .35s;
}
.platform-module:hover, .platform-module[aria-pressed=true] { background: #f0f3e8; border-color: #aebaa0; }
.platform-module.is-in-view { border-left-color: #617653; box-shadow: inset 2px 0 0 #617653; }
.platform-module-icon { display: grid; place-items: center; margin: 0; width: 52px; height: 52px; background: #e9eedf; border-radius: 50%; color: #546d48; }
.module-copy { display: block; min-width: 0; }
.module-copy h3 { font: 550 19px/1.5 var(--sans); margin: 0 0 8px; }
.module-copy > span { display: block; color: #626e58; font-size: 15px; line-height: 1.8; }
.module-meta { display: flex; align-items: center; gap: 16px; }
.module-state { font-size: 12px; padding: 5px 10px; color: #647054; }
.module-arrow { position: static; display: flex; color: #536a43; }
.planner-tour-section { padding-block: 80px; }
.planner-tour-intro p, .platform-release-note { font-size: 14px; color: #647057; }
.planner-tour-top { font-size: 14px; flex-wrap: wrap; }
.tour-example-label { font-size: 12px; color: #657359; }
.planner-tour-body { grid-template-columns: 200px minmax(0, 1fr); }
.planner-tour-nav button { font-size: 14px; min-height: 48px; padding: 13px 12px; color: #5f7151; }
.planner-tour-content { overflow-wrap: anywhere; padding: 32px; }
.planner-preview-heading { flex-wrap: wrap; }
.planner-example-note, .tour-available, .travel-heading > span, .travel-days > div > span { font-size: 12px; color: #667657; }
.budget-summary > span, .budget-totals, .budget-categories > div { font-size: 14px; color: #60734e; }
.budget-summary > strong { font-size: clamp(34px, 4vw, 50px); overflow-wrap: normal; }
.budget-categories > div { grid-template-columns: 96px minmax(0, 1fr) auto; }
.budget-categories b { font-size: 14px; white-space: nowrap; }
.budget-categories small, .budget-summary > strong small { font-size: 12px; }
.calendar-heading strong { font-size: 18px; }
.calendar-heading > span { font-size: 13px; color: #647557; }
.calendar-days > span, .calendar-days > span:nth-child(-n+7) { font-size: 13px; color: #5c704e; }
.calendar-days > span { line-height: 38px; }
.agenda-filters button { font-size: 13px; min-height: 40px; padding: 9px 12px; color: #607450; }
.agenda-event h4 { font-size: 14px; color: #536b44; }
.agenda-event p, .agenda-event > time small { font-size: 12px; color: #687b58; }
.travel-heading p, .travel-days p, .travel-bits > span { font-size: 13px; color: #637655; }
.travel-days h4 { font-size: 14px; color: #526b41; }
.tour-invitation { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
.tour-invite-copy p, .tour-invite-copy .text-link { font-size: 14px; color: #637553; }
.tour-invite-photo { padding: 0; border: 0; text-align: inherit; cursor: pointer; }
.tour-invite-photo span, .tour-invite-photo small { font-size: 12px; letter-spacing: .08em; }
.tour-note-list > label, .tour-note-progress > span { font-size: 14px; color: #5d734c; }
.tour-note-list input { flex-shrink: 0; width: 20px; height: 20px; }
.tour-note-footer { flex-wrap: wrap; }
.tour-note-footer > span, .tour-note-footer .text-link { font-size: 13px; color: #647955; }
.text-link, .template-card > p, .section-heading p, .atelier-copy > p, .journey-copy > p { font-size: 15px; }
.template-card > .text-link, .demo-designs button, .demo-palettes > span, .atelier-note { font-size: 14px; }
.demo-designs button { min-height: 44px; padding-inline: 16px; }
.demo-palettes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 28px; max-width: 400px; }
.demo-palettes .palette-option { display: flex; align-items: center; gap: 16px; width: 100%; height: auto; min-height: 76px; padding: 14px 18px; border: 1px solid #d9dfcf; border-radius: 5px; background: transparent; text-align: left; outline: none; }
.demo-palettes .palette-option:hover { transform: none; border-color: #96a687; }
.demo-palettes .palette-option.selected { background: #eff3e8; outline: none; border-color: #879b76; }
.demo-palettes .palette-option:focus-visible { outline: 2px solid #617653; outline-offset: 4px; }
.palette-swatch { display: block; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--swatch-paper) 50%, var(--swatch) 50%); border: 1px solid #d5d9cb; }
.palette-option b { display: block; font: 500 15px var(--sans); }
.palette-option small { display: block; font: 13px var(--sans); color: #67735b; margin-top: 6px; }
.palette-option > .icon { margin-left: auto; opacity: 0; color: var(--green); }
.palette-option.selected > .icon { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atelier-stage { min-width: 0; }
.preview-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; width: min(320px, 100%); font-size: 14px; color: var(--muted); }
.preview-controls > button { min-height: 44px; font-size: 14px; }
.demo-phone { width: min(320px, 100%); max-width: 100%; height: clamp(420px, 68dvh, 640px); flex-shrink: 0; }
.demo-phone > iframe { min-width: 0; }
.demo-phone, .phone-frame { overscroll-behavior: contain; }
.template-cover { transform-style: preserve-3d; }
.template-cover:active, .btn:active { transform: translateY(1px); }
.btn { min-height: 44px; }
.collection-filters button { min-height: 44px; font-size: 14px; }
.collection-toolbar, .section-heading, .workspace-heading, .subheading { flex-wrap: wrap; }
.collection-note, .footer-links, .footer-links button, .copyright { font-size: 13px; }
.footer-links a, .footer-links button { min-height: 44px; display: inline-flex; align-items: center; }
.auth-form-wrap > p, .form-stack > label { font-size: 15px; }
.check-label, .check-label button, .auth-switch { font-size: 14px !important; }
.check-label input { flex-shrink: 0; }
.workspace-sidebar nav a { font-size: 14px; }
.workspace-feature p, .workspace-heading p, .empty-state p, .task-row label { font-size: 15px; }
.workspace-feature .text-link, .subheading > span, .recent-row p, .invite-card-body > p, .status { font-size: 13px; }
.stats-row article > span { font-size: 14px; }
.stats-row article, .recent-row > div, .workspace-feature > *, .invite-card { min-width: 0; }
.recent-row { flex-wrap: wrap; gap: 14px; }
.card-actions { flex-wrap: wrap; gap: 10px; }
.card-actions .btn, .published-link a, .published-link button { font-size: 14px; min-height: 44px; }
.icon-btn, .modal-close { min-width: 44px; min-height: 44px; }
.published-link { flex-wrap: wrap; gap: 12px; }
.table-scroll { min-width: 0; max-width: 100%; overscroll-behavior-inline: contain; }
.data-table { min-width: 560px; }
.data-table th, .data-table td { font-size: 14px; }
.data-table small, .audit-row small, .planning-banner small, .admin-templates small { font-size: 13px; }
.audit-row { flex-wrap: wrap; font-size: 14px; gap: 6px; }
.task-add { flex-wrap: wrap; }
.task-add > input { min-width: 0; flex: 1 1 170px; }
.editor-document { min-width: 0; }
.editor-document strong { font-size: 14px; }
.editor-document > span, .sections-label, .editor-note, .editor-field small { font-size: 13px; color: #68765c; }
.sections-label { font-family: var(--sans); letter-spacing: 0; }
.sections-label span, .section-order, .hero-lock { font: 12px var(--sans); color: #65745a; }
.editor-shell :is(button, .text-link) { font-family: var(--sans); font-size: 14px; }
.upload-label span { font-size: 14px; }
.upload-label small { font: 12px var(--sans); }
.sidebar-bottom small { font-size: 12px; }
.photo-actions .text-link { min-height: 44px; font-size: 13px; }
.data-table td :is(b, .btn) { font-size: 14px; }
.data-table td small { font-size: 13px; color: #65735b; }
.template-card .pill, .workspace-heading .pill { font-size: 12px; }
.stats-row strong small { font: 13px var(--sans); }
.site-footer .footer-links :is(a, button) { font-size: 14px; }
.platform-section-label { font-size: 13px; }
.editor-field, .panel-description { font-size: 14px; }
.editor-field input:not([type=color]):not([type=range]), .editor-field textarea, .editor-field select { font-size: 16px; min-width: 0; max-width: 100%; }
.two-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-select { min-width: 0; font-size: 14px; }
.section-row-tools { flex-shrink: 0; }
.preview-toolbar { flex-wrap: wrap; gap: 10px; font-size: 14px; }
.preview-toolbar > div { flex-shrink: 0; }
.preview-toolbar button { font-size: 13px; min-height: 40px; color: #506641; }
.phone-stage { padding: 8px 20px 20px; min-width: 0; min-height: 0; }
.phone-frame { flex-shrink: 1; width: 375px; max-width: 100%; min-width: 0; height: 100%; max-height: 790px; }
.phone-frame iframe { min-width: 0; min-height: 0; }
.modal-overlay { padding: 24px; }
.modal-card.template-preview-modal {
  display: grid; grid-template-columns: minmax(200px, .75fr) minmax(0, 1fr); gap: 28px;
  width: min(900px, 100%); max-width: 900px; height: min(820px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px); padding: 36px; overflow: auto; align-items: center;
}
.preview-modal-heading { width: auto; min-width: 0; padding: 0; }
.preview-modal-heading h2 { font-size: 27px; }
.preview-modal-heading p, .preview-modal-heading .btn { font-size: 14px; }
.preview-modal-heading .preview-scroll-hint { color: #66735d; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.sample-frame { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: none; align-self: stretch; display: block; }
.preview-mode-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-card.template-preview-modal.is-fullscreen { width: 100%; max-width: 1160px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 48px); }
.is-fullscreen .preview-modal-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-right: 28px; }
.is-fullscreen .preview-modal-heading h2 { margin: 0; }
.is-fullscreen .preview-modal-heading > p { display: none; }
.is-fullscreen .preview-mode-actions { margin-left: auto; }
.is-fullscreen .sample-frame { max-width: 440px; justify-self: center; }
.modal-close { z-index: 2; top: 8px; right: 8px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .template-cover:hover { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px); }
  .platform-module:hover { transform: translateY(-3px); }
}
@media (max-width: 1100px) {
  .platform-overview { gap: 36px; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .platform-module, .platform-module:first-child, .platform-module:last-child { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 20px; padding: 24px; }
  .platform-module-icon { grid-row: span 2; width: 44px; height: 44px; }
  .module-meta { grid-column: 2; justify-content: space-between; }
  .planner-tour-body { grid-template-columns: 180px minmax(0, 1fr); }
  .schedule-demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .calendar-days { max-width: 380px; }
  .tour-invitation { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tour-invite-photo { width: 200px; max-width: 100%; margin: auto; }
  .editor-layout { grid-template-columns: 215px minmax(0, 310px) minmax(0, 1fr); }
  .editor-header .brand { display: none; }
  .preview-toolbar { padding: 16px 14px; }
  .phone-stage { padding-inline: 12px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .editor-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .editor-preview { grid-column: 2; }
  .editor-shell[data-mobile-panel=preview] .editor-settings { display: none; }
  .editor-shell:not([data-mobile-panel=preview]) .editor-preview { display: none; }
  .editor-sections { grid-row: 1; }
  .mobile-editor-controls { display: flex; flex-shrink: 0; gap: 8px; padding: 10px 20px; border-top: 1px solid #dce2d4; background: #fafbf7; }
  .mobile-editor-controls button { flex: 1; min-height: 48px; border: 0; border-radius: 6px; background: transparent; color: #637356; font: 500 14px var(--sans); cursor: pointer; }
  .mobile-editor-controls button.active { background: #e7eddc; color: #32472a; }
  .mobile-editor-controls [data-mobile-panel=sections] { display: none; }
  .editor-settings { padding-bottom: 32px; }
}
@media (max-width: 760px) {
  .hero-copy > p.hero-lead { font-size: 16px; line-height: 1.8; }
  .hero-actions { gap: 18px; }
  .hero-actions > .btn, .hero-actions > .text-link { font-size: 14px; min-height: 46px; }
  .platform-overview { display: block; padding: 56px 24px; }
  .platform-intro { position: static; margin: 0 0 32px; gap: 20px; }
  .platform-intro h2 { font-size: 31px; }
  .platform-intro > p { font-size: 15px; }
  .platform-progress { display: none; }
  .platform-module-grid { gap: 14px; }
  .platform-module, .platform-module:first-child, .platform-module:last-child { min-height: 0; grid-column: auto; padding: 22px; }
  .module-copy h3 { font-size: 17px; margin-bottom: 6px; }
  .module-copy > span { font-size: 14px; }
  .planner-tour-section { padding: 48px 20px; }
  .planner-tour-intro p, .platform-release-note { font-size: 13px; }
  .planner-tour-body { grid-template-columns: minmax(0, 1fr); }
  .planner-tour-nav { padding: 12px; gap: 6px; }
  .planner-tour-nav button { font-size: 13px; min-height: 44px; padding: 10px 12px; }
  .planner-tour-content { padding: 24px 20px; }
  .planner-tour-top { padding: 16px; }
  .budget-summary { padding: 20px; }
  .budget-summary > strong { font-size: 36px; }
  .budget-totals { gap: 10px; }
  .budget-totals b { margin-left: 4px; }
  .budget-categories > div { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; font-size: 13px; }
  .budget-categories > div > div { grid-row: 2; grid-column: 1 / -1; }
  .budget-categories b { grid-row: 1; grid-column: 2; font-size: 13px; }
  .calendar-days { max-width: none; }
  .travel-days > div { grid-template-columns: 60px minmax(0, 1fr); padding: 18px 14px; }
  .travel-days > div > span { font-size: 12px; }
  .tour-note-footer { gap: 16px; }
  .atelier-section { padding: 54px 24px; gap: 36px; }
  .atelier-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .atelier-copy { display: contents; }
  .experience-ready .atelier-copy[data-reveal] { opacity: 1; transform: none; }
  .atelier-copy > h2 { order: 1; margin: 0; }
  .atelier-copy > p { order: 2; margin: 0; }
  .atelier-stage { order: 3; gap: 14px; }
  .atelier-copy > .demo-designs { order: 4; justify-self: center; margin-bottom: 0; }
  .atelier-copy > .demo-palettes { order: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: none; margin: 0; }
  .demo-palettes .palette-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 108px; padding: 14px 8px; text-align: center; }
  .palette-option b { font-size: 13px; line-height: 1.5; }
  .palette-option small { display: none; }
  .palette-option > .icon { position: absolute; top: 7px; right: 7px; width: 12px; height: 12px; margin: 0; }
  .palette-swatch { width: 30px; height: 30px; }
  .atelier-copy > .text-link { order: 6; justify-self: center; min-height: 44px; }
  .atelier-stage .demo-phone { height: min(480px, 58svh); min-height: 420px; }
  .section-heading p, .template-card > p, .atelier-copy > p, .journey-copy > p { font-size: 15px; }
  .journey-section { padding-inline: 24px; }
  .faq-list summary { font-size: 15px; }
  .faq-list details p { font-size: 14px; }
  .collection-page { padding-inline: 22px; }
  .collection-toolbar { align-items: flex-start; gap: 14px; }
  .collection-filters { gap: 4px; }
  .collection-filters button { padding-inline: 13px; font-size: 13px; }
  .page-intro p, .auth-form-wrap > p { font-size: 15px; }
  .mobile-workspace-header { background: #f0f3e8; backdrop-filter: none; }
  .mobile-workspace-header nav { flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; }
  .mobile-workspace-header nav > a, .mobile-workspace-header nav > button { font-size: 14px; min-height: 44px; padding: 10px 0; }
  .workspace-content { padding-inline: 20px; }
  .workspace-heading p { font-size: 14px; }
  .workspace-heading > .btn, .workspace-welcome-copy > .btn, .recent-row .btn { font-size: 14px; }
  .stats-row article { padding: 18px 12px; }
  .stats-row article > span { font-size: 13px; }
  .workspace-feature p { font-size: 14px; }
  .workspace-feature .text-link { font-size: 13px; }
  .task-panel, .admin-panel { padding: 20px 16px; }
  .subheading > span, .subheading > .text-link { font-size: 13px; }
  .planning-banner small, .planning-progress > span { font-size: 13px; }
  .task-add > .btn { font-size: 14px; }
  .editor-header { min-height: 76px; height: auto; flex-wrap: wrap; gap: 10px; padding: 12px; flex-shrink: 0; }
  .editor-document { flex: 1; max-width: none; }
  .editor-header-actions { gap: 8px; }
  .editor-header-actions .btn { font-size: 13px; padding: 10px 12px; }
  .editor-header-actions .btn .icon { display: none; }
  .editor-shell { height: 100dvh; }
  .editor-preview { padding-bottom: 0; }
  .editor-layout { display: block; }
  .editor-settings { padding: 24px 22px 32px; }
  .editor-field { font-size: 14px; }
  .section-select { font-size: 15px; }
  .move-tools { flex-direction: row; gap: 4px; }
  .move-tools button { width: 44px; height: 44px; color: #617653; }
  .preview-toolbar { padding: 14px 16px; }
  .phone-stage { padding: 4px 14px 14px; }
  .phone-frame { max-width: 100%; }
  .mobile-editor-controls { flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-editor-controls button { font-size: 14px; min-height: 48px; }
  .modal-overlay { padding: 12px; }
  .modal-card.template-preview-modal { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding: 24px 18px 18px; width: 100%; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .preview-modal-heading { padding-right: 24px; }
  .preview-modal-heading h2 { font-size: 24px; margin: 4px 0 8px; }
  .preview-modal-heading > p { margin-bottom: 10px; line-height: 1.7; }
  .preview-modal-heading .preview-scroll-hint { margin-bottom: 14px; font-size: 12px; }
  .sample-frame { max-width: 430px; justify-self: center; }
  .preview-modal-heading .btn { font-size: 13px; padding: 10px 14px; }
  .modal-card.template-preview-modal.is-fullscreen { height: calc(100dvh - 24px); }
  .is-fullscreen .preview-mode-actions { margin-left: 0; }
}
@media (max-width: 360px) {
  .platform-module, .platform-module:first-child, .platform-module:last-child { padding: 18px; gap: 12px; grid-template-columns: 36px minmax(0, 1fr); }
  .platform-module-icon { width: 36px; height: 36px; }
  .planner-tour-content { padding-inline: 16px; }
  .budget-summary > strong { font-size: 32px; }
  .editor-header-actions { width: 100%; justify-content: flex-end; }
  .hero-copy h1.platform-hero-title { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .platform-intro { position: static; }
  .hero-copy h1.platform-hero-title, .hero-image-frame > img, .template-cover, .platform-module { transform: none !important; }
  .platform-progress b, .template-cover, .platform-module, .btn, .tour-note-progress i { transition: none; }
  .hero-image-frame > img { will-change: auto; }
}
