/* Merriwood sections. Our own version of each section type, built only from tokens.css.
   Rules: headlines stand alone (no small labels above them), light weight display type,
   cobalt and yellow at full strength or as their light tints, softly rounded cards, real product screens. */

body { background: var(--mw-paper); }
section { padding-block: 104px; }
.lt { font-family: var(--mw-display); font-weight: 400; letter-spacing: -0.04em; line-height: 1.04; color: var(--mw-ink); }
h2.lt { font-size: var(--mw-t-d2); }
.sec-top { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-top p { color: var(--mw-ink-2); font-size: var(--mw-t-lead); margin-top: 16px; }
.btn-yellow { background: var(--mw-yellow); color: var(--mw-ink); }
.btn-yellow:hover { background: var(--mw-yellow-deep); }
.btn-ondark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ondark:hover { border-color: #fff; }
.play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }

/* Hero: centred headline, the product in a plain frame, small live updates around it */
.h { position: relative; padding-block: 64px 48px; overflow: hidden; }
.h-top { text-align: center; display: grid; justify-items: center; position: relative; z-index: 1; }
.h h1 { font-size: var(--mw-t-d1); max-width: 13ch; }
.h-sub { font-size: var(--mw-t-lead); color: var(--mw-ink-2); max-width: 48ch; margin-top: 22px; }
.h-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.h-stage { position: relative; margin-top: 64px; }
.frame { position: relative; z-index: 1; background: #fff; border-radius: var(--mw-r-card); padding: 0 8px 8px; box-shadow: var(--mw-lift); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding-inline: 10px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e2de; }
.frame-bar span { margin: 0 auto; font: 500 12.5px/1 var(--mw-sans); color: var(--mw-ink-3); background: #f4f3ef; border-radius: var(--mw-r-chip); padding: 7px 14px; transform: translateX(-24px); }
.frame-video, .frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-radius: 10px; background: #eef0f6; }
.h-float { position: absolute; inset: 0; pointer-events: none; max-width: 1360px; margin: 0 auto; }
.fc { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mw-ink-2); background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: var(--mw-float); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.fc b { color: var(--mw-ink); font-weight: 600; }
.fc-t { color: var(--mw-ink-3); font-variant-numeric: tabular-nums; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mw-ok); }
.fc-1 { left: 3%; top: 60px; }
.fc-2 { left: 7%; top: 240px; background: var(--mw-yellow); color: #3a3216; animation-delay: -2s; }
.fc-3 { right: 3%; top: 80px; background: var(--mw-ink); color: var(--mw-on-dark); animation-delay: -4s; }
.fc-3 b { color: #fff; }
.fc-3 .fc-t { color: var(--mw-yellow); }
.fc-4 { right: 7%; top: 260px; background: var(--mw-cobalt); color: var(--mw-on-cobalt); animation-delay: -5s; }
.fc-4 b { color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Works with: a quiet row of names */
.works { padding-block: 56px 24px; text-align: center; }
.works-l { color: var(--mw-ink-3); font-size: 15px; }
.works-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.works-row li { font-family: var(--mw-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; color: #9a9ca5; }

/* Numbers: the bold card set */
.why { padding-block: 64px 40px; }
.why-l { text-align: center; color: var(--mw-ink-3); font-size: 15px; margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.st { background: var(--mw-stone); border-radius: var(--mw-r-card); padding: 22px 20px; min-height: 220px; display: flex; flex-direction: column; color: var(--mw-ink); }
.st b { font-family: var(--mw-display); font-weight: 400; font-size: 36px; letter-spacing: -0.04em; line-height: 1; }
.st-k { font-size: 15px; margin-top: 8px; line-height: 1.35; }
.st-d { font-size: 14px; color: var(--mw-ink-2); margin-top: auto; padding-top: 24px; line-height: 1.45; }
.st-blue { background: var(--mw-cobalt); color: #fff; }
.st-blue .st-d { color: var(--mw-on-cobalt); }
.st-yellow { background: var(--mw-yellow); }
.st-yellow .st-d { color: #3a3216; }
.st-ink { background: var(--mw-ink); color: #fff; }
.st-ink .st-d { color: var(--mw-on-dark); }

/* Feature grid: four plain cards, title and words, no icons */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.fcard { background: #fff; border-radius: var(--mw-r-card); padding: 30px; box-shadow: var(--mw-edge); }
.fcard h3 { font-family: var(--mw-display); font-weight: 400; font-size: var(--mw-t-h3); letter-spacing: -0.03em; line-height: 1.15; }
.fcard p { color: var(--mw-ink-2); margin-top: 10px; }

/* Feature tabs: a list on the left, the screen on the right */
.ftabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.ft-list { display: grid; gap: 4px; }
.ft { text-align: left; font: inherit; background: transparent; border: 0; border-radius: var(--mw-r-panel); padding: 18px 20px; cursor: pointer; color: var(--mw-ink-3); transition: background-color 160ms, color 160ms; }
.ft b { display: block; font-family: var(--mw-display); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; color: inherit; }
.ft span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; }
.ft[aria-selected="true"] { background: #fff; color: var(--mw-ink); box-shadow: var(--mw-edge); }
.ft[aria-selected="true"] span { color: var(--mw-ink-2); }
.ft-panel[hidden] { display: none; }

/* Screens inside sections */
.shot { margin: 0; background: #fff; border-radius: var(--mw-r-card); padding: 8px; box-shadow: var(--mw-lift); }
.shot img { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: left top; border-radius: 10px; }
.shot-phone { background: var(--mw-cobalt-tint); padding: 28px 0 0; display: flex; justify-content: center; overflow: hidden; box-shadow: none; }
.shot-phone img { width: min(240px, 70%); max-height: 380px; object-position: top; border-radius: 22px 22px 0 0; border: 7px solid var(--mw-ink); border-bottom: 0; }

/* Expanding rows */
.acc { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--mw-line); }
.acc details { border-bottom: 1px solid var(--mw-line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 2px; font-family: var(--mw-display); font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.02em; color: var(--mw-ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover .acc-i { background: #e2e1db; }
.acc-t { color: var(--mw-cobalt); width: 64px; flex: none; font-variant-numeric: tabular-nums; }
.acc-i { margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mw-stone); position: relative; transition: background-color 160ms; }
.acc-i::before, .acc-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--mw-ink); transform: translate(-50%, -50%); }
.acc-i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 240ms var(--mw-ease); }
.acc details[open] .acc-i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-b { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: start; padding: 0 2px 32px 82px; }
.acc-b > p { color: var(--mw-ink-2); max-width: 38ch; }
.acc-a { padding: 0 2px 26px; color: var(--mw-ink-2); max-width: 70ch; }

/* Merriwood against the usual way */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 0 28px; }
.pc { background: #fff; border-radius: var(--mw-r-panel); padding: 22px; box-shadow: var(--mw-edge); font-size: 15.5px; color: var(--mw-ink-2); }
.pc-h { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mw-ink); margin-bottom: 10px; font-size: 15px; }
.pc-h svg { width: 22px; height: 22px; flex: none; }
.pc-old { background: transparent; box-shadow: 0 0 0 1px var(--mw-line); }
.pc-old .pc-h { color: var(--mw-ink-3); }

/* Comparison table */
.ctab { max-width: 900px; margin: 0 auto; border-collapse: collapse; width: 100%; font-size: 15.5px; }
.ctab th { font-weight: 500; text-align: center; padding: 0 12px 16px; }
.ctab th:first-child { text-align: left; }
.ctab td { padding: 16px 12px; border-top: 1px solid var(--mw-line); text-align: center; color: var(--mw-ink-2); }
.ctab td:first-child { text-align: left; color: var(--mw-ink); }
.ctab td small { display: block; color: var(--mw-ink-3); font-size: 14px; margin-top: 2px; }
.ck-yes, .ck-no { display: inline-block; font: 500 13px/1 var(--mw-sans); padding: 6px 10px; border-radius: var(--mw-r-chip); }
.ck-yes { background: var(--mw-cobalt); color: #fff; }
.ck-no { background: var(--mw-stone); color: var(--mw-ink-3); }

/* Steps, light: handwritten numbers */
.step-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1000px; text-align: center; }
.sn { display: block; font-family: "Caveat", cursive; font-size: 46px; line-height: 1; color: var(--mw-cobalt); }
.step-list h3 { font-family: var(--mw-display); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; margin-top: 8px; }
.step-list p { color: var(--mw-ink-2); font-size: 15.5px; margin-top: 10px; max-width: 30ch; margin-inline: auto; }

/* Steps, dark: four cards on ink */
.dark { background: var(--mw-ink); color: #fff; border-radius: 24px; margin-inline: max(12px, env(safe-area-inset-left, 0px)); }
.dark .lt { color: #fff; }
.dark .sec-top p { color: var(--mw-on-dark); }
.dsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dstep { background: #17181d; border-radius: var(--mw-r-card); padding: 24px; min-height: 240px; display: flex; flex-direction: column; }
.dstep b { font-family: "Caveat", cursive; font-weight: 500; font-size: 36px; line-height: 1; color: var(--mw-yellow); }
.dstep h3 { font-family: var(--mw-display); font-weight: 400; font-size: 21px; letter-spacing: -0.02em; margin-top: auto; padding-top: 32px; }
.dstep p { color: var(--mw-on-dark); font-size: 14.5px; margin-top: 8px; }

/* Quote */
.quote { max-width: 820px; margin: 0 auto; }
.quote blockquote { margin: 0; font-family: var(--mw-display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.2; color: var(--mw-ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mw-line); font-size: 15px; color: var(--mw-ink-2); }
.quote figcaption b { color: var(--mw-ink); font-weight: 500; display: block; }
.avatar { width: 44px; height: 44px; border-radius: 10px; background: var(--mw-stone); flex: none; display: grid; place-items: center; font-weight: 600; color: var(--mw-ink-2); }

/* Call to action band, on cobalt */
.cta-cobalt { background: var(--mw-cobalt); color: #fff; border-radius: 24px; margin-inline: max(12px, env(safe-area-inset-left, 0px)); text-align: center; }
.cta-cobalt .lt { color: #fff; font-size: var(--mw-t-d2); max-width: 18ch; margin: 0 auto; }
.cta-cobalt p { color: var(--mw-on-cobalt); font-size: var(--mw-t-lead); margin: 18px auto 0; max-width: 48ch; }
.cta-cobalt .h-ctas { margin-top: 32px; }

/* Offer card, on a light tint */
.offer { max-width: 860px; margin: 0 auto; text-align: center; border-radius: 24px; padding: 56px 40px; display: grid; justify-items: center; }
.offer > p { color: var(--mw-ink-2); max-width: 54ch; margin-top: 16px; }
.tint-yellow { background: var(--mw-yellow-tint); }
.tint-blue { background: var(--mw-cobalt-tint); }

/* About: words and a picture side by side */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.about h2 { font-size: clamp(30px, 3.4vw, 42px); }
.about p { color: var(--mw-ink-2); margin-top: 16px; max-width: 52ch; }
.about-pic { border-radius: var(--mw-r-card); overflow: hidden; background: var(--mw-stone); aspect-ratio: 4 / 3; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Articles */
.posts-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.post { text-decoration: none; color: var(--mw-ink); display: grid; gap: 14px; }
.cover { aspect-ratio: 4 / 3; border-radius: var(--mw-r-card); padding: 20px; display: flex; align-items: end; font-family: var(--mw-display); font-weight: 500; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; }
.cover-blue { background: var(--mw-cobalt); color: #fff; }
.cover-yellow { background: var(--mw-yellow); }
.cover-ink { background: var(--mw-ink); color: #fff; }
.cover-stone { background: var(--mw-stone); }
.post h3 { font-weight: 500; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.post > span:not(.cover) { font-size: 14px; color: var(--mw-ink-3); }

/* Small parts: chips, a joined field and button */
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1 var(--mw-sans); padding: 7px 10px; border-radius: var(--mw-r-chip); background: var(--mw-stone); color: var(--mw-ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.chip-on { background: var(--mw-cobalt-tint); color: var(--mw-cobalt); }
.chip-done { background: var(--mw-stone); color: var(--mw-ink-2); }
.chip-late { background: var(--mw-yellow-tint); color: #6b5300; }
.chip-miss { background: #fbe7e5; color: var(--mw-alert); }
.join { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: calc(var(--mw-r-btn) + 4px); box-shadow: var(--mw-edge); max-width: 460px; }
.join input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 0 10px; color: var(--mw-ink); }
.join input:focus { outline: none; }
.join:focus-within { box-shadow: 0 0 0 2px var(--mw-cobalt); }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; }
.field input { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--mw-line); border-radius: var(--mw-r-btn); background: #fff; }
.field input:focus { outline: none; border-color: var(--mw-cobalt); box-shadow: 0 0 0 3px var(--mw-cobalt-tint); }

/* The film */
.film { border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); width: 100%; }
.film::backdrop { background: rgba(10, 10, 10, 0.82); }
.film video { display: block; width: 100%; max-height: 86vh; border-radius: var(--mw-r-card); background: #000; }
.film-x { position: absolute; top: -44px; right: 0; font: 600 14px/1 var(--mw-sans); color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--mw-r-btn); padding: 10px 16px; cursor: pointer; }
.film[open] { overflow: visible; margin-top: 70px; }

/* The shared booking block, in the light headline style */
.book h2 { font-family: var(--mw-display); font-weight: 400; letter-spacing: -0.04em; }

/* Sound familiar: the owner's words, then what Merriwood does */
.pains { padding-block: 72px 24px; }
.pcard h3 { font-size: 22px; }
.pcard p { margin-top: 12px; }

/* Inner pages */
.pg-h { padding-block: 72px 56px; }
.pg-h h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; }
section.tight { padding-block: 72px; }
.fsec { padding-block: 72px; }
.fsec + .fsec { border-top: 1px solid var(--mw-line); }
.fsec-shot { max-width: 980px; margin: 0 auto 24px; }
.fsec-shot img { max-height: 420px; }
.fgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.fgrid-3 .fcard h3 { font-size: 22px; }
.fcard { display: flex; flex-direction: column; gap: 0; }
.fcard .btn { align-self: flex-start; margin-top: auto; }
.fcard p + .btn, .fcard address + .btn { margin-top: 22px; }
.fcard address { font-style: normal; color: var(--mw-ink-2); margin-top: 10px; }
.fcard-tint { background: var(--mw-cobalt-tint); box-shadow: none; }
.fcard-blue { background: var(--mw-cobalt); color: #fff; box-shadow: none; }
.fcard-blue h3 { color: #fff; }
.fcard-blue p { color: var(--mw-on-cobalt); }
.fix { margin-top: auto !important; padding-top: 16px; border-top: 1px solid var(--mw-line); font-size: 15px; }
.fcard .fix { margin-top: 16px !important; }
.fix b { color: var(--mw-cobalt); font-weight: 500; }
.soon { display: inline-block; font: 500 12.5px/1 var(--mw-sans); letter-spacing: 0; padding: 5px 8px; border-radius: var(--mw-r-chip); background: var(--mw-yellow-tint); color: #6b5300; vertical-align: 3px; margin-left: 6px; }

.plans { gap: 12px; }
.plan { border: 0; border-radius: var(--mw-r-card); padding: 28px; background: #fff; box-shadow: var(--mw-edge); }
.plan h3 { font-family: var(--mw-display); font-weight: 400; font-size: 26px; letter-spacing: -0.03em; }
.plan .cap { font-family: var(--mw-sans); font-size: 15px; color: var(--mw-ink-3); margin-top: -10px; }
.plan .price { font-family: var(--mw-display); font-weight: 400; font-size: 52px; }
.plan .price small { font-family: var(--mw-sans); }
.plan.pick { background: var(--mw-cobalt); color: #fff; box-shadow: none; }
.plan.pick .cap, .plan.pick .price small, .plan.pick ul { color: var(--mw-on-cobalt); }
.plan.pick li::before { border-color: var(--mw-yellow); }
.plan-y { background: var(--mw-yellow); box-shadow: none; }
.plan-y .cap, .plan-y ul { color: #3a3216; }
.plan-y li::before { border-color: var(--mw-ink); }
.offer-row { max-width: none; margin-top: 12px; padding: 32px 36px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: var(--mw-r-card); }
.offer-row h3.lt { font-size: 26px; }
.offer-row p { color: var(--mw-ink-2); margin-top: 8px; max-width: 70ch; }
.ctable-wrap { border: 0; box-shadow: var(--mw-edge); border-radius: var(--mw-r-card); }
.ctable thead th { background: var(--mw-stone); font-weight: 500; }
.small-note { margin-top: 18px; }

.split2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split-flip > :first-child { order: 2; }
.split2 h2.lt { font-size: clamp(30px, 3.4vw, 44px); }
.split2 .sn { margin-bottom: 14px; }
.split-p { color: var(--mw-ink-2); font-size: 17.5px; margin: 16px 0 22px; max-width: 48ch; }
.tagcard { background: #fff; border-radius: var(--mw-r-card); padding: 28px; box-shadow: var(--mw-edge); display: grid; gap: 14px; }
.tagcard h3 { font-weight: 500; font-size: 16px; }
.tagcard h3:not(:first-child) { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--mw-line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 14.5px; padding: 7px 11px; border-radius: var(--mw-r-chip); background: var(--mw-stone); }

section.dark.tight-dark { padding-block: 40px; }
.dsteps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.dstep { text-decoration: none; color: #fff; transition: background-color 160ms; min-height: 200px; }
a.dstep:hover { background: #22242b; }

.about p + p { margin-top: 14px; }
.prose h2.lt { font-size: clamp(28px, 3vw, 36px); margin: 0 0 14px; }
.prose h2 { font-family: var(--mw-display); font-weight: 400; letter-spacing: -0.03em; }

@media (max-width: 1180px) { .h-float { display: none; } }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .st:last-child { grid-column: 1 / -1; }
  .st { min-height: 170px; }
  .acc-b, .ftabs, .about, .split2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .split-flip > :first-child { order: 0; }
  .fgrid-3, .dsteps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-row { flex-direction: column; align-items: flex-start; }
  .acc-b { padding-left: 2px; }
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dsteps, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  section { padding-block: 72px; }
  .h { padding-top: 40px; }
  .h-stage { margin-top: 44px; }
  .frame { padding: 0 5px 5px; border-radius: 12px; }
  .frame-bar { height: 30px; }
  .frame-bar span { display: none; }
  .works-row { gap: 10px 24px; }
  .works-row li { font-size: 17px; }
  .pair, .fgrid, .fgrid-3, .dsteps, .dsteps-5, .posts { grid-template-columns: minmax(0, 1fr); }
  .pg-h { padding-block: 48px 32px; }
  .acc summary { gap: 12px; }
  .offer { padding: 40px 22px; }
  .ctab { font-size: 14.5px; }
  .dark, .cta-cobalt { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fc { animation: none; }
}
