/*
 * Artisa Spa client portal.
 *
 * Ivory, warm white and antique gold; Cormorant Garamond for the voice of the
 * page, Jost for everything you read and tap. Calm comes from space, a slow
 * and soft rhythm of motion, and only ever one gold action per view.
 */

:root {
	--page: #F5F0E4;
	--page-deep: #EFE7D6;
	--card: #FFFFFF;
	--panel: #FBF6EC;
	--line: #ECE5D4;
	--line-strong: #DED3BC;
	--ink: #241F26;
	--text: #4A434C;
	--muted: #6B6472;
	--gold: #856834;
	--gold-deep: #6E5427;
	--gold-soft: #C9AF7E;
	--gold-wash: #F3EAD7;
	--plum: #2A2430;
	--sage: #5E7A63;
	--sage-wash: #E9F0E8;
	--rose: #9A4B4B;
	--rose-wash: #F7E9E6;

	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: Jost, 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(36, 31, 38, .04), 0 10px 30px rgba(36, 31, 38, .06);
	--shadow-lift: 0 2px 4px rgba(36, 31, 38, .05), 0 18px 44px rgba(36, 31, 38, .10);
	--ease: cubic-bezier(.22, .61, .36, 1);
	--slow: 420ms;
	--quick: 220ms;

	--rail: 264px;
	--james: 400px;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--page);
	background-image: radial-gradient(1200px 600px at 85% -10%, #FBF7EE 0%, rgba(251, 247, 238, 0) 60%), radial-gradient(900px 500px at -10% 110%, #F1E8D6 0%, rgba(241, 232, 214, 0) 55%);
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- boot */

.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 36px; }
.boot-logo { width: 200px; height: auto; opacity: .9; }

.breath {
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--gold-soft);
	animation: breath 3.2s var(--ease) infinite;
}

@keyframes breath {
	0%, 100% { transform: scale(.82); opacity: .45; }
	50% { transform: scale(1.06); opacity: 1; }
}

.noscript { max-width: 520px; margin: 40px auto; padding: 24px; background: var(--card); border-radius: var(--radius); }

/* ---------------------------------------------------------------- type */

h1, h2, h3, .serif { font-family: var(--serif); color: var(--ink); font-weight: 500; letter-spacing: .005em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.08; margin: 0 0 10px; }
h2 { font-size: 27px; line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }

.eyebrow { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 4px; max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------------------------------------------------------------- frame */

.frame { min-height: 100vh; }

.rail {
	position: fixed; inset: 0 auto 0 0; width: var(--rail);
	padding: 34px 22px 26px;
	display: flex; flex-direction: column; gap: 28px;
	border-right: 1px solid var(--line);
	background: rgba(251, 246, 236, .72);
	backdrop-filter: blur(10px);
}

.rail .brand img { width: 180px; height: auto; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin-top: 18px; }
.nav-group > span { display: block; padding: 0 14px 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.nav a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px; border-radius: 12px;
	color: var(--text); text-decoration: none; font-size: 15px;
	transition: background var(--quick) var(--ease), color var(--quick) var(--ease);
}
.nav a svg { width: 19px; height: 19px; flex: none; stroke: currentColor; opacity: .75; }
.nav a:hover { background: var(--gold-wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav a[aria-current="page"] svg { color: var(--gold); opacity: 1; }

.rail-foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.rail-foot a { color: var(--muted); }

.main { padding: 52px 40px 132px calc(var(--rail) + 40px); }
.content { max-width: 780px; margin: 0 auto; }

.topbar, .tabbar { display: none; }

@media (min-width: 1280px) {
	body.james-docked .main { padding-right: calc(var(--james) + 40px); }
}

@media (max-width: 960px) {
	:root { --rail: 0px; }
	.rail { display: none; }
	.main { padding: 84px var(--gutter) 176px; }

	.topbar {
		display: flex; align-items: center; justify-content: space-between;
		position: fixed; inset: 0 0 auto 0; height: 64px; z-index: 20;
		padding: 0 var(--gutter);
		background: rgba(245, 240, 228, .9); backdrop-filter: blur(12px);
		border-bottom: 1px solid transparent;
		transition: border-color var(--quick) var(--ease);
	}
	.topbar.scrolled { border-bottom-color: var(--line); }
	.topbar .brand img { width: 150px; height: auto; }

	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; inset: auto 0 0 0; z-index: 20;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.tabbar a, .tabbar button {
		display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 8px 2px; border: 0; background: none; border-radius: 12px;
		color: var(--muted); font-size: 11.5px; text-decoration: none; cursor: pointer;
	}
	.tabbar svg { width: 22px; height: 22px; stroke: currentColor; }
	.tabbar [aria-current="page"] { color: var(--gold); }
}

/* ---------------------------------------------------------------- view motion */

.view { animation: rise var(--slow) var(--ease) both; }

@keyframes rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

.head { margin-bottom: 30px; }
.head .lede { margin-top: 6px; }

.section { margin-top: 44px; }
.section > h2 { margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* ---------------------------------------------------------------- cards */

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 28px;
	box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card.soft { background: var(--panel); box-shadow: none; }
.card.flat { box-shadow: none; }

@media (max-width: 640px) {
	.card { padding: 22px 20px; border-radius: 20px; }
}

.stack { display: grid; gap: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) {
	.grid-2 { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Next appointment: the one thing that matters most, given room. */
.hero-appt {
	position: relative; overflow: hidden;
	padding: 32px 32px 28px;
	background: linear-gradient(140deg, #FFFFFF 0%, #FCF8EF 100%);
}
.hero-appt::after {
	content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
	border: 1px solid var(--gold-wash);
	box-shadow: 0 0 0 30px rgba(243, 234, 215, .35), 0 0 0 62px rgba(243, 234, 215, .18);
	pointer-events: none;
}
.hero-appt > * { position: relative; z-index: 1; }
.hero-appt .date { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(30px, 5.4vw, 40px); line-height: 1.05; color: var(--ink); margin: 2px 0 8px; }
.hero-appt .what { font-size: 17px; color: var(--text); margin: 0; }
.hero-appt .countdown { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-deep); font-size: 13px; }

@media (max-width: 640px) {
	.hero-appt { padding: 26px 22px 22px; }
}

.stat { padding: 18px 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; display: block; transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease); }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: inherit; }
.stat .big { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--ink); display: block; margin-bottom: 6px; }
.stat .label { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- lists */

.appt { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: start; }
.appt .day {
	text-align: center; padding: 10px 0 9px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
}
.appt .day b { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink); font-weight: 500; }
.appt .day span { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.appt h3 { margin-top: 2px; }
.appt .meta { color: var(--muted); font-size: 14.5px; margin: 0; }

@media (max-width: 480px) {
	.appt { grid-template-columns: 58px 1fr; gap: 14px; }
	.appt .day b { font-size: 25px; }
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.gold { background: var(--gold-wash); color: var(--gold-deep); border-color: transparent; }
.pill.sage { background: var(--sage-wash); color: var(--sage); border-color: transparent; }
.pill.rose { background: var(--rose-wash); color: var(--rose); border-color: transparent; }

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 999px;
	border: 1px solid var(--gold); background: transparent; color: var(--gold);
	font-size: 14.5px; font-weight: 500; letter-spacing: .02em; text-decoration: none;
	cursor: pointer; transition: background var(--quick) var(--ease), color var(--quick) var(--ease), transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--gold-wash); color: var(--gold-deep); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(133, 104, 52, .22); }
.btn.primary:hover { background: var(--gold-deep); color: #fff; }
.btn.quiet { border-color: transparent; color: var(--muted); padding: 0 12px; }
.btn.quiet:hover { color: var(--ink); background: var(--panel); }
.btn.danger { border-color: var(--rose); color: var(--rose); }
.btn.danger:hover { background: var(--rose-wash); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* The house gold (0.1.22; 0.1.26), as on the website: main buttons are solid polished gold with a
   drifting sheen, a glint every 7s and dark engraved lettering; ordinary buttons are their pair,
   ivory with a polished gold rim, a soft gold glint every 7s and a champagne wash on mouse-over
   (0.6s). Only the website Book Now buttons breathe (owner, 16 Oct).
   The drift and the glint are layers that slide with transform (::before the metal, ::after the glint),
   as the website Book Now does: they run on the graphics card and never wait for a repaint. Before,
   they moved by repainting the button background, which Chrome did not always redraw on screen.
   A busy button keeps ::after for its spinner. */
@keyframes apGoldBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(var(--ap-breathe, 1.06)); } }
@keyframes apGoldSlide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-61.5%); } }
@keyframes apGoldGlint { 0%, 62% { transform: translateX(-160%) skewX(-20deg); } 88%, 100% { transform: translateX(560%) skewX(-20deg); } }
.btn.primary {
	color: #2B1F0C; text-shadow: 0 1px 0 rgba(255, 244, 214, .55);
	position: relative; isolation: isolate; overflow: hidden;
	background: #B8913F;
	border: 1px solid #7A5A22;
	box-shadow: inset 0 1px 0 rgba(255, 248, 225, .75), inset 0 -1px 0 rgba(92, 64, 20, .35), 0 3px 8px -5px rgba(74, 52, 16, .55);
	filter: brightness(1) saturate(1);
	transition: filter .6s ease, color .6s ease;
}
.btn.primary:not(.busy)::before, .btn.primary:not(.busy)::after, .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after {
	content: ''; display: block; position: absolute; top: 0; bottom: 0; left: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
	pointer-events: none; z-index: -1;
}
.btn.primary:not(.busy)::before {
	width: 260%;
	background:
		linear-gradient(180deg, rgba(255, 250, 232, .32) 0%, rgba(255, 250, 232, .08) 48%, rgba(80, 55, 15, 0) 52%, rgba(80, 55, 15, .12) 100%),
		linear-gradient(105deg, #86642A 0%, #B8913F 14%, #E8D08F 26%, #C7A256 38%, #8E6A2B 50%, #BE9849 62%, #F1DDA6 74%, #C29D50 86%, #8A672A 100%);
	transform: translateX(0); animation: apGoldSlide 14s ease-in-out infinite; will-change: transform;
}
.btn.primary:not(.busy)::after {
	width: 22%;
	background: linear-gradient(90deg, rgba(255, 252, 240, 0), rgba(255, 252, 240, .65), rgba(255, 252, 240, 0));
	transform: translateX(-160%) skewX(-20deg); animation: apGoldGlint 7s ease-in-out infinite; will-change: transform;
}
.btn.primary:hover, .btn.primary:focus-visible { background: #B8913F; color: #21180A; filter: brightness(1.07) saturate(1.06); }
.btn:not(.primary):not(.quiet):not(.danger) {
	color: #6E5529;
	position: relative; isolation: isolate; overflow: hidden;
	background:
		linear-gradient(#FFFDF8, #FFFDF8) padding-box,
		linear-gradient(105deg, #9C7A38 0%, #C9A65A 20%, #F1DDA6 32%, #B8913F 46%, #8A672A 58%, #C7A256 72%, #EED8A0 84%, #9C7A38 100%) border-box;
	border: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, 0), 0 2px 6px -4px rgba(74, 52, 16, .3);
	transition: box-shadow .6s ease, color .6s ease;
}
.btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after {
	width: 22%;
	background: linear-gradient(90deg, rgba(214, 182, 110, 0), rgba(214, 182, 110, .45), rgba(214, 182, 110, 0));
	transform: translateX(-160%) skewX(-20deg); animation: apGoldGlint 7s ease-in-out infinite; will-change: transform;
}
.btn:not(.primary):not(.quiet):not(.danger):hover, .btn:not(.primary):not(.quiet):not(.danger):focus-visible {
	color: #4A3812;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, .26), 0 3px 9px -5px rgba(74, 52, 16, .4);
}
/* On the dark voucher card the pair is turned round: a gold rim and champagne lettering, no glint. */
.voucher .btn:not(.primary):not(.quiet):not(.danger) {
	color: #F2E3BF; background: transparent; border: 1px solid #B8913F;
	box-shadow: inset 0 0 0 40px rgba(201, 175, 126, 0);
	transition: box-shadow .6s ease, color .6s ease, border-color .6s ease;
}
.voucher .btn:not(.primary):not(.quiet):not(.danger):hover, .voucher .btn:not(.primary):not(.quiet):not(.danger):focus-visible {
	color: #FBF1D6; border-color: #E8D08F; box-shadow: inset 0 0 0 40px rgba(201, 175, 126, .16);
}
.voucher .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after { display: none; }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn::after { animation: none; } .btn.primary:not(.busy)::after, .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after { display: none; } }

.link-btn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------------------------------------------------------------- forms */

.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.input, select.input, textarea.input {
	width: 100%; min-height: 50px; padding: 12px 16px;
	border: 1px solid var(--line-strong); border-radius: 14px; background: #fff;
	font-size: 16px; color: var(--ink);
	transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 175, 126, .25); }
.input.code { letter-spacing: .5em; text-align: center; font-size: 24px; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line-strong); background: #fff; font-size: 14px; cursor: pointer;
	transition: all var(--quick) var(--ease);
}
.choices input:checked + span { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-deep); }
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background var(--quick) var(--ease); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform var(--quick) var(--ease); }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(20px); }

.note { padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; }
.note.gold { background: var(--gold-wash); border-color: transparent; color: var(--gold-deep); }
.note.sage { background: var(--sage-wash); border-color: transparent; color: #3E5A44; }
.note.rose { background: var(--rose-wash); border-color: transparent; color: var(--rose); }
.note + .note { margin-top: 10px; }

.error { color: var(--rose); font-size: 14px; margin: 10px 0 0; }

/* ---------------------------------------------------------------- sign in */

.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.gate-card { width: 100%; max-width: 440px; text-align: center; }
.gate-card .brand img { width: 210px; height: auto; margin: 0 auto 34px; }
.gate-card .card { text-align: left; padding: 34px 32px; }
.gate-card h1 { font-size: 36px; text-align: center; }
.gate-card .lede { text-align: center; margin: 0 auto 26px; font-size: 16px; }
.gate-foot { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.gate-foot a { color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.envelope { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--gold); }
.envelope svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.2; }

@media (max-width: 480px) {
	.gate-card .card { padding: 28px 22px; }
}

/* ---------------------------------------------------------------- sheet */

.scrim {
	position: fixed; inset: 0; z-index: 60; background: rgba(36, 31, 38, .28);
	backdrop-filter: blur(2px);
	animation: fade var(--quick) var(--ease) both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
	position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px)); max-height: min(88vh, 820px); overflow: auto;
	background: var(--card); border-radius: 26px; padding: 30px 30px 26px;
	box-shadow: 0 30px 80px rgba(36, 31, 38, .22);
	animation: pop var(--slow) var(--ease) both;
}

@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }

.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--panel); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.sheet-close:hover { color: var(--ink); }
.sheet-close svg, .notice-dismiss svg, .btn svg, .row > svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }

@media (max-width: 640px) {
	.sheet {
		left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%;
		max-height: 92vh; border-radius: 26px 26px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
		animation: up var(--slow) var(--ease) both;
	}
	@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Date strip and times for moving an appointment. */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.days button {
	flex: none; width: 62px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; scroll-snap-align: start; text-align: center;
	transition: all var(--quick) var(--ease);
}
.days button b { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.days button span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.days button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); }
.days button[disabled] { opacity: .35; cursor: default; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.times button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; transition: all var(--quick) var(--ease); }
.times button:hover { border-color: var(--gold-soft); }
.times button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #fff; }

/* Terms of a change, shown before anything happens. */
.terms { margin: 18px 0 4px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.terms .fee { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; margin: 4px 0 8px; }
.terms.free { background: var(--sage-wash); border-color: transparent; }

/* ---------------------------------------------------------------- packages */

.ring { --pct: 0; width: 88px; height: 88px; border-radius: 50%; flex: none; display: grid; place-items: center;
	background: conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--gold-wash) 0); }
.ring > div { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ring b { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 500; color: var(--ink); }
.ring small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.pkg-top { display: flex; gap: 20px; align-items: center; }

/* ---------------------------------------------------------------- vouchers */

.voucher {
	position: relative; overflow: hidden; border-radius: 22px; padding: 26px 26px 22px; color: #F2E3BF;
	background: linear-gradient(135deg, #2A2430 0%, #3A2F3F 55%, #4A3B33 100%);
	box-shadow: 0 16px 40px rgba(42, 36, 48, .22);
}
.voucher::before { content: 'ARTISA SPA'; font-family: var(--serif); letter-spacing: .32em; font-size: 14px; color: #E7D6B0; }
.voucher .amount { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 46px; line-height: 1; margin: 22px 0 6px; color: #F2E3BF; }
/* 0.1.34: a treatment voucher shows the treatment's name where a money voucher shows its balance. */
.voucher .amount.treatment-name { font-size: 26px; line-height: 1.15; margin: 20px 0 8px; text-wrap: balance; }
.voucher .code-label { margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .3em; color: #C9AF7E; }
/* Same as the gift voucher email (artisa-email-design 1.4). */
.voucher .code {
	margin-top: 6px; font-family: Jost, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 21px; font-weight: 500;
	letter-spacing: .24em; font-variant-numeric: tabular-nums; color: #F2E3BF; overflow-wrap: anywhere;
}
@media (max-width: 400px) { .voucher .code { font-size: 18px; letter-spacing: .18em; } }
.voucher .exp { font-size: 13px; color: #D9CDB4; margin-top: 6px; }
.voucher.spent { filter: grayscale(.6); opacity: .75; }

/* ---------------------------------------------------------------- rewards */

.points { text-align: center; padding: 36px 24px; }
.points .big { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--ink); }

.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row .input { flex: 1; font-size: 14.5px; }

/* ---------------------------------------------------------------- suggestions and notices */

.suggest { display: flex; gap: 18px; align-items: flex-start; }
.suggest .glyph { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold); }
.suggest .glyph svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.suggest p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.notice-dismiss { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; }

/* ---------------------------------------------------------------- toast */

.toast {
	position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%);
	max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 16px;
	background: var(--plum); color: #F4EEE2; box-shadow: 0 16px 40px rgba(36, 31, 38, .25); font-size: 14.5px;
	animation: rise var(--slow) var(--ease) both;
}
@media (max-width: 960px) { .toast { bottom: 96px; } }

/* ---------------------------------------------------------------- skeleton */

.skel { position: relative; overflow: hidden; background: #EFE8DA; border-radius: 12px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shimmer 1.6s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.empty { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty .serif { font-size: 24px; color: var(--ink); margin-bottom: 6px; }

/* ---------------------------------------------------------------- misc */

.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.qr { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 18px; border: 1px solid var(--line); width: fit-content; margin: 12px auto; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; font-family: 'Courier New', monospace; font-size: 16px; letter-spacing: .06em; padding: 18px 20px; background: var(--panel); border-radius: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--ink); }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt { margin-top: 18px; }

/* ---------------------------------------------------------------- file drop */

.drop {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 22px 16px; border: 1.5px dashed rgba(133, 104, 52, .45); border-radius: 18px;
	background: var(--panel); color: var(--ink); text-align: center; cursor: pointer;
	transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
}
.drop svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; margin-bottom: 4px; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-wash); }
.drop.has-file { border-style: solid; border-color: var(--gold); }
.drop .drop-text { font-weight: 500; overflow-wrap: anywhere; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 0.1.28 house style */
/* 0.1.28 (owner, 20 Oct; docs/house-style.md): the client account in the house style the therapist portal set.
   Every box is the same ivory-to-gold card with a gold-light rim and a soft shadow; headings, titles, names and
   labels are the house gold-dark; inputs wear a gold rim and a gold focus ring; choice groups (therapist, reason,
   cards, days, times) are tiles with the chosen one in polished gold and a white tick badge; main buttons are
   polished gold with the drifting sheen and the glint, other buttons ivory with a gold gradient rim; the menu is
   tiles, each with a polished-gold medallion around its icon (span.nav-icon, added by portal.js), the current page
   a solid gold tile; pills are gold-rimmed. Later rules win: this block overrides the flat-white-and-grey rules
   above it rather than editing them. Reduced motion: no sheen, no glint, no lifts. */
:root {
	--page: #F7F1E5; --page-deep: #EFE6D4;
	--card: #FFFDF8; --panel: #FBF5E8;
	--line: #C9AF7E; --line-strong: #C9AF7E;
	--ink: #2E2A24; --text: #2E2A24; --muted: #6B6154;
	--gold: #7A5E2E; --gold-deep: #5E4722; --gold-soft: #C9AF7E; --gold-wash: #F6E9CC;
	--sage: #2C5F2C; --sage-wash: #EEF6EE; --rose: #8A4322; --rose-wash: #FDF0EC;
	--radius: 14px; --radius-sm: 12px;
	--shadow: 0 2px 6px -2px rgba(74, 52, 16, .18), inset 0 1px 0 #fff;
	--shadow-lift: 0 8px 18px -6px rgba(122, 94, 46, .45), inset 0 1px 0 #fff;
	--acp-gold-mid: #A6864B;
	--acp-hair: rgba(166, 134, 75, .18);
	--acp-rule: rgba(166, 134, 75, .28);
	--acp-card-bg: linear-gradient(180deg, #FFFDF8, #FBF5E8);
	--acp-soft-bg: linear-gradient(180deg, #FFFBEF, #F6E9CC);
	--acp-polished: linear-gradient(160deg, #C9AF7E 0%, #A6864B 45%, #7A5E2E 100%);
	--acp-metal: linear-gradient(180deg, rgba(255, 250, 232, .32) 0%, rgba(255, 250, 232, .08) 48%, rgba(80, 55, 15, 0) 52%, rgba(80, 55, 15, .12) 100%),
		linear-gradient(105deg, #86642A 0%, #B8913F 14%, #E8D08F 26%, #C7A256 38%, #8E6A2B 50%, #BE9849 62%, #F1DDA6 74%, #C29D50 86%, #8A672A 100%);
}
@keyframes acpGoldSlide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-61.5%); } }
@keyframes acpGoldGlint { 0%, 62% { transform: translateX(-160%) skewX(-20deg); } 88%, 100% { transform: translateX(560%) skewX(-20deg); } }

body {
	background-image: radial-gradient(1200px 600px at 85% -10%, #FDF9F0 0%, rgba(253, 249, 240, 0) 60%), radial-gradient(900px 500px at -10% 110%, #EFE6D4 0%, rgba(239, 230, 212, 0) 55%);
}
:focus-visible { outline-color: var(--gold); }

/* Titles, names and labels: the house gold-dark. */
h1, h2, h3, .serif, .empty .serif { color: var(--gold); font-weight: 600; }
h1 { font-size: clamp(30px, 5.4vw, 36px); }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
.gate-card h1 { font-size: 32px; }
.eyebrow, .nav-group > span { color: var(--gold); }
.field > span { color: var(--gold); font-weight: 600; }
.stat .big, .hero-appt .date, .appt h3, .appt .day b, .points .big, .ring b, .terms .fee, .days button b, .kv dd,
.drop .drop-text, .switch > div > div:first-child, .copy-row .input[readonly] { color: var(--gold); }
.stat .label, .appt .meta, .appt .day span, .hint, .kv dt, .lede, .empty, .rail-foot, .gate-foot, .or { color: var(--muted); }
a, .link-btn { color: var(--gold); }
a:hover, .link-btn:hover { color: var(--gold-deep); }

/* Cards: ivory-to-gold, a gold-light rim, the house shadow. */
.card, .stat, .terms, .qr, .codes, .noscript, .sheet, .skip, .card.soft, .card.flat {
	background: var(--acp-card-bg); border: 1px solid var(--gold-soft); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card.soft { background: var(--acp-soft-bg); }
.card { padding: 24px 26px; }
.card.hero-appt {
	padding: 30px 30px 26px; border: 2px solid var(--acp-gold-mid); background: var(--acp-card-bg);
	box-shadow: 0 8px 20px -8px rgba(122, 94, 46, .45), inset 0 1px 0 #fff;
}
.hero-appt::after { border-color: rgba(166, 134, 75, .35); box-shadow: 0 0 0 30px rgba(246, 233, 204, .45), 0 0 0 62px rgba(246, 233, 204, .22); }
.hero-appt .countdown { background: #fff; border: 1px solid var(--gold-soft); color: var(--gold); font-weight: 600; }
.stat { padding: 16px 18px 14px; }
a.stat:hover { border-color: var(--acp-gold-mid); box-shadow: var(--shadow-lift); }
.appt .day { background: var(--acp-soft-bg); border: 1px solid var(--gold-soft); border-radius: var(--radius-sm); }
.terms { background: var(--acp-soft-bg); border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 #fff; }
.terms.free { background: var(--sage-wash); border-color: #B8D8B8; }
.codes { background: var(--acp-soft-bg); border-radius: var(--radius-sm); color: var(--gold); }
.sheet { padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(74, 52, 16, .28), inset 0 1px 0 #fff; }
.sheet-close, .notice-dismiss { background: var(--card); border: 1px solid var(--gold-soft); color: var(--gold); }
.sheet-close:hover, .notice-dismiss:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.row, .row:first-child { border-top-color: var(--acp-hair); }
.divider, .or::before, .or::after { background: var(--acp-rule); }
.drop { border: 1.5px dashed var(--gold-soft); border-radius: var(--radius-sm); background: var(--card); color: var(--gold); }
.drop:hover, .drop.over { border-color: var(--acp-gold-mid); background: var(--acp-soft-bg); }
.drop.has-file { border-color: var(--gold); }
.drop svg { stroke: var(--gold); }
.ring { background: conic-gradient(var(--acp-gold-mid) calc(var(--pct) * 1%), var(--page-deep) 0); }
.ring > div { background: var(--card); }
.skel { background: var(--page-deep); }
.scrim { background: rgba(46, 42, 36, .28); }

/* Notices: a gold-banded card (a green band when done, a warm one for a warning). */
.note {
	position: relative; overflow: hidden; padding: 13px 18px 13px 24px; border: 1px solid var(--gold-soft); border-left: 0; border-radius: var(--radius-sm);
	background: var(--acp-card-bg); color: var(--ink); box-shadow: var(--shadow);
}
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #C9AF7E, #A6864B 50%, #7A5E2E); }
.note.gold { background: var(--acp-soft-bg); border-color: var(--gold-soft); color: var(--gold); }
.note.sage { background: var(--sage-wash); border-color: #B8D8B8; color: var(--sage); }
.note.sage::before { background: var(--sage); }
.note.rose { background: var(--rose-wash); border-color: #E6B9A6; color: var(--rose); }
.note.rose::before { background: var(--rose); }
.error { color: var(--rose); }

/* The gift voucher: the same ivory card with a thin gold band at the top, as the voucher email. */
.voucher {
	color: var(--ink); padding: 30px 26px 22px; border: 1px solid var(--gold-soft); border-radius: var(--radius);
	background: var(--acp-card-bg); box-shadow: var(--shadow);
}
.voucher::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #C9AF7E, #A6864B 50%, #7A5E2E); }
.voucher::before { color: var(--gold); }
.voucher .amount, .voucher .code { color: var(--gold); }
.voucher .code-label, .voucher .exp { color: var(--muted); }
.voucher.spent { filter: none; opacity: .6; }
.voucher .btn:not(.primary):not(.quiet):not(.danger) {
	color: #6E5529;
	background: linear-gradient(#FFFDF8, #FFFDF8) padding-box,
		linear-gradient(105deg, #9C7A38 0%, #C9A65A 20%, #F1DDA6 32%, #B8913F 46%, #8A672A 58%, #C7A256 72%, #EED8A0 84%, #9C7A38 100%) border-box;
	border: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, 0), 0 2px 6px -4px rgba(74, 52, 16, .3);
}
.voucher .btn:not(.primary):not(.quiet):not(.danger):hover, .voucher .btn:not(.primary):not(.quiet):not(.danger):focus-visible {
	color: #4A3812; border-color: transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, .26), 0 3px 9px -5px rgba(74, 52, 16, .4);
}
.voucher .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after { display: block; }

/* Medallions: the envelope on the sign-in page and the glyph on a suggestion. */
.envelope, .suggest .glyph {
	position: relative; isolation: isolate; overflow: hidden; border-radius: 50%; display: grid; place-items: center;
	background: #B8913F; border: 1px solid #7A5A22; color: #2B1F0C;
	box-shadow: inset 0 1px 0 rgba(255, 248, 225, .75), inset 0 -1px 0 rgba(92, 64, 20, .35), 0 3px 8px -4px rgba(74, 52, 16, .6);
}
.envelope { padding: 16px; }
.envelope svg, .suggest .glyph svg { position: relative; z-index: 1; stroke: currentColor; filter: drop-shadow(0 1px 0 rgba(255, 244, 214, .5)); }
.envelope svg { stroke-width: 1.5; }
.envelope::before, .envelope::after, .suggest .glyph::before, .suggest .glyph::after, .nav-icon::before, .nav-icon::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
}
.envelope::before, .suggest .glyph::before, .nav-icon::before { width: 260%; background: var(--acp-metal); animation: acpGoldSlide 14s ease-in-out infinite; will-change: transform; }
.envelope::after, .suggest .glyph::after, .nav-icon::after {
	width: 30%; background: linear-gradient(90deg, rgba(255, 252, 240, 0), rgba(255, 252, 240, .7), rgba(255, 252, 240, 0));
	transform: translateX(-160%) skewX(-20deg); animation: acpGoldGlint 7s ease-in-out infinite; will-change: transform;
}
.suggest .glyph::after { animation-delay: 1.5s; }

/* Pills: gold-rimmed ivory; soft gold, green or warm for a state. */
.pill { background: #fff; border: 1px solid var(--gold-soft); color: var(--gold); font-weight: 600; }
.pill.gold { background: var(--acp-soft-bg); border-color: var(--acp-gold-mid); color: var(--gold); }
.pill.sage { background: var(--sage-wash); border-color: #B8D8B8; color: var(--sage); }
.pill.rose { background: var(--rose-wash); border-color: #E6B9A6; color: var(--rose); }

/* Inputs: a gold rim, a gold focus ring. */
.input, select.input, textarea.input {
	border: 1.5px solid var(--gold-soft); border-radius: 10px; background: #fff; color: var(--ink);
	box-shadow: inset 0 1px 2px rgba(74, 52, 16, .06);
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166, 134, 75, .2); }
.input:disabled { background: var(--page); color: var(--muted); border-style: dashed; }
.input.code { color: var(--gold); }
.check { color: var(--ink); }
.check input, input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }
.check input { width: 20px; height: 20px; }
input[type="file"]::file-selector-button {
	font: inherit; font-weight: 600; padding: 7px 14px; margin-right: 10px; cursor: pointer;
	border: 1.5px solid var(--gold-soft); border-radius: 999px; background: var(--card); color: var(--gold);
}
input[type="file"]::file-selector-button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Choice tiles: the chosen one polished gold with a white tick badge; two a row on phones. */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choices label { display: block; min-width: 0; }
.choices input { z-index: 1; cursor: pointer; }
.choices span {
	position: relative; display: flex; width: 100%; align-items: center; justify-content: center; min-height: 3rem; padding: .55rem .6rem;
	border: 1.5px solid var(--acp-rule); border-radius: var(--radius-sm); background: #fff; color: var(--gold);
	font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; box-shadow: 0 1px 3px rgba(46, 42, 36, .05);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.choices label:hover span { border-color: var(--acp-gold-mid); box-shadow: 0 6px 16px rgba(166, 134, 75, .2); transform: translateY(-1px); }
.choices input:checked + span {
	border-color: var(--gold); color: #fff; background: var(--acp-polished); text-shadow: 0 1px 1px rgba(60, 40, 10, .35);
	box-shadow: 0 8px 18px rgba(122, 94, 46, .3); transform: translateY(-1px);
}
.choices input:checked + span::after, .days button[aria-pressed="true"]::after, .times button[aria-pressed="true"]::after {
	content: "\2713"; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
	background: #fff; color: var(--gold); border: 1.5px solid var(--gold); font-family: var(--sans); font-size: 13px; line-height: 19px; text-align: center; font-weight: 700;
	text-shadow: none; box-shadow: 0 2px 6px rgba(46, 42, 36, .15);
}
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Days and times when moving or booking: the same tiles. */
.days { gap: 10px; padding: 12px 12px 12px 2px; }
.days button {
	position: relative; width: 64px; padding: 9px 0; border: 1.5px solid var(--acp-rule); border-radius: var(--radius-sm); background: #fff;
	box-shadow: 0 1px 3px rgba(46, 42, 36, .05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.days button:not([disabled]):hover { border-color: var(--acp-gold-mid); box-shadow: 0 6px 16px rgba(166, 134, 75, .2); transform: translateY(-1px); }
.days button[aria-pressed="true"] { border-color: var(--gold); background: var(--acp-polished); box-shadow: 0 8px 18px rgba(122, 94, 46, .3); }
.days button[aria-pressed="true"] b, .days button[aria-pressed="true"] span { color: #fff; text-shadow: 0 1px 1px rgba(60, 40, 10, .35); }
.days button[disabled] { opacity: .4; }
.times { gap: 10px; }
.times button {
	position: relative; min-height: 3rem; border: 1.5px solid var(--acp-rule); border-radius: var(--radius-sm); background: #fff; color: var(--gold);
	font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px rgba(46, 42, 36, .05);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.times button:hover { border-color: var(--acp-gold-mid); box-shadow: 0 6px 16px rgba(166, 134, 75, .2); transform: translateY(-1px); }
.times button[aria-pressed="true"] { border-color: var(--gold); background: var(--acp-polished); color: #fff; text-shadow: 0 1px 1px rgba(60, 40, 10, .35); box-shadow: 0 8px 18px rgba(122, 94, 46, .3); }

/* Switches: gold when on. */
.switch input { background: var(--page-deep); border: 1px solid var(--gold-soft); box-shadow: inset 0 1px 2px rgba(74, 52, 16, .08); }
.switch input::after { top: 2px; left: 2px; }
.switch input:checked { background: var(--acp-polished); border-color: #7A5A22; }
.switch input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Buttons: the therapist portal's .ap-btn-primary and its pair, keyframes acpGoldSlide / acpGoldGlint. */
.btn.primary {
	color: #2B1F0C; text-shadow: 0 1px 0 rgba(255, 244, 214, .55);
	position: relative; isolation: isolate; overflow: hidden;
	background: #B8913F; border: 1px solid #7A5A22;
	box-shadow: inset 0 1px 0 rgba(255, 248, 225, .75), inset 0 -1px 0 rgba(92, 64, 20, .35), 0 3px 8px -5px rgba(74, 52, 16, .55);
	filter: brightness(1) saturate(1); transition: filter .6s ease, color .6s ease;
}
.btn.primary:not(.busy)::before, .btn.primary:not(.busy)::after, .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after {
	content: ""; display: block; position: absolute; top: 0; bottom: 0; left: 0; margin: 0; padding: 0; border: 0; border-radius: 0; pointer-events: none; z-index: -1;
}
.btn.primary:not(.busy)::before { width: 260%; background: var(--acp-metal); transform: translateX(0); animation: acpGoldSlide 14s ease-in-out infinite; will-change: transform; }
.btn.primary:not(.busy)::after {
	width: 22%; background: linear-gradient(90deg, rgba(255, 252, 240, 0), rgba(255, 252, 240, .65), rgba(255, 252, 240, 0));
	transform: translateX(-160%) skewX(-20deg); animation: acpGoldGlint 7s ease-in-out infinite; will-change: transform;
}
.btn.primary:hover, .btn.primary:focus-visible { background: #B8913F; color: #21180A; filter: brightness(1.07) saturate(1.06); }
.btn:not(.primary):not(.quiet):not(.danger) {
	color: #6E5529; position: relative; isolation: isolate; overflow: hidden;
	background: linear-gradient(#FFFDF8, #FFFDF8) padding-box,
		linear-gradient(105deg, #9C7A38 0%, #C9A65A 20%, #F1DDA6 32%, #B8913F 46%, #8A672A 58%, #C7A256 72%, #EED8A0 84%, #9C7A38 100%) border-box;
	border: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, 0), 0 2px 6px -4px rgba(74, 52, 16, .3);
	transition: box-shadow .6s ease, color .6s ease;
}
.btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after {
	width: 22%; background: linear-gradient(90deg, rgba(214, 182, 110, 0), rgba(214, 182, 110, .45), rgba(214, 182, 110, 0));
	transform: translateX(-160%) skewX(-20deg); animation: acpGoldGlint 7s ease-in-out infinite; will-change: transform;
}
.btn:not(.primary):not(.quiet):not(.danger):hover, .btn:not(.primary):not(.quiet):not(.danger):focus-visible {
	color: #4A3812; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 40px rgba(232, 208, 143, .26), 0 3px 9px -5px rgba(74, 52, 16, .4);
}
.btn.quiet { color: var(--gold); font-weight: 600; }
.btn.quiet:hover { background: var(--page-deep); color: var(--gold-deep); }
.btn.danger { border-color: #E6B9A6; color: var(--rose); }
.btn.danger:hover { background: var(--rose-wash); color: var(--rose); }

/* The menu: tiles with a polished-gold medallion around the icon; where you are is a solid gold tile. */
.rail { border-right-color: var(--acp-rule); background: rgba(247, 241, 229, .86); overflow-y: auto; gap: 22px; }
.nav { gap: 6px; }
.nav-group { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.nav-group > span { padding: 4px 6px 0; }
.nav a {
	position: relative; gap: 12px; min-height: 54px; padding: 6px 12px 6px 7px; border: 1.5px solid var(--gold-soft); border-radius: var(--radius);
	background: var(--acp-card-bg); color: var(--gold); font-size: 14.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.15;
	box-shadow: 0 2px 6px -2px rgba(74, 52, 16, .25), inset 0 1px 0 #fff;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.nav a:hover, .nav a:focus-visible {
	transform: translateY(-2px); border-color: var(--acp-gold-mid); background: linear-gradient(180deg, #FFFDF8, #F6EBD2); color: var(--gold);
	box-shadow: 0 10px 20px -8px rgba(122, 94, 46, .45), inset 0 1px 0 #fff;
}
.nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav a > span:not(.nav-icon) { display: block; min-width: 0; }
.nav-icon {
	position: relative; isolation: isolate; overflow: hidden; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: #B8913F; border: 1px solid #7A5A22; color: #2B1F0C;
	box-shadow: inset 0 1px 0 rgba(255, 248, 225, .75), inset 0 -1px 0 rgba(92, 64, 20, .35), 0 3px 8px -4px rgba(74, 52, 16, .6);
}
.nav a svg, .nav-icon svg { width: 20px; height: 20px; opacity: 1; stroke-width: 1.8; position: relative; z-index: 1; color: #2B1F0C; filter: drop-shadow(0 1px 0 rgba(255, 244, 214, .5)); }
.nav a:nth-of-type(2) .nav-icon::after, .tabbar a:nth-of-type(2) .nav-icon::after { animation-delay: .9s; }
.nav a:nth-of-type(3) .nav-icon::after, .tabbar a:nth-of-type(3) .nav-icon::after { animation-delay: 1.8s; }
.nav a:nth-of-type(4) .nav-icon::after, .tabbar a:nth-of-type(4) .nav-icon::after { animation-delay: 2.7s; }
.nav a:nth-of-type(5) .nav-icon::after, .tabbar a:nth-of-type(5) .nav-icon::after { animation-delay: 3.6s; }
.nav a:nth-of-type(6) .nav-icon::after { animation-delay: 4.5s; }
.nav a:nth-of-type(even) .nav-icon::before, .tabbar a:nth-of-type(even) .nav-icon::before { animation-delay: -7s; }
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover, .nav a[aria-current="page"]:focus-visible {
	transform: none; border-color: #7A5A22; color: #fff; text-shadow: 0 1px 1px rgba(60, 40, 10, .35); background: var(--acp-polished);
	box-shadow: 0 8px 18px -6px rgba(122, 94, 46, .55), inset 0 1px 0 rgba(255, 248, 225, .45);
}
.nav a[aria-current="page"] .nav-icon, .tabbar [aria-current="page"] .nav-icon { background: var(--card); border-color: #FFFDF8; color: var(--gold); box-shadow: 0 3px 8px -3px rgba(40, 28, 8, .5); }
.nav a[aria-current="page"] .nav-icon::before, .tabbar [aria-current="page"] .nav-icon::before { animation: none; background: linear-gradient(180deg, #FFFDF8, #F6EBD2); }
.nav a[aria-current="page"] .nav-icon::after, .tabbar [aria-current="page"] .nav-icon::after { background: linear-gradient(90deg, rgba(214, 182, 110, 0), rgba(214, 182, 110, .5), rgba(214, 182, 110, 0)); }
.nav a[aria-current="page"] svg, .tabbar [aria-current="page"] svg { color: var(--gold); filter: none; }
.nav a[aria-current="page"]::after {
	content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
	background: #7A5E2E; border-radius: 2px;
}
.rail-foot a { color: var(--gold); }

/* The phone top bar and the tab row at the foot: the same tiles, smaller. */
@media (max-width: 960px) {
	.topbar { background: rgba(247, 241, 229, .92); }
	.topbar.scrolled { border-bottom-color: var(--acp-rule); }
	.tabbar { background: linear-gradient(180deg, #FFFDF8, #FBF5E8); border-top: 1px solid var(--gold-soft); box-shadow: 0 -2px 10px -4px rgba(74, 52, 16, .25); gap: 4px; }
	.tabbar a, .tabbar button { gap: 3px; padding: 6px 2px 5px; color: var(--gold); font-size: 11.5px; font-weight: 600; border-radius: var(--radius-sm); }
	.tabbar .nav-icon { width: 34px; height: 34px; }
	.tabbar svg, .tabbar .nav-icon svg { width: 18px; height: 18px; color: #2B1F0C; stroke-width: 1.8; position: relative; z-index: 1; filter: drop-shadow(0 1px 0 rgba(255, 244, 214, .5)); }
	.tabbar [aria-current="page"] {
		color: #fff; text-shadow: 0 1px 1px rgba(60, 40, 10, .35); background: var(--acp-polished); border: 1px solid #7A5A22;
		box-shadow: 0 4px 10px -4px rgba(122, 94, 46, .55), inset 0 1px 0 rgba(255, 248, 225, .45);
	}
}

/* Phones: two tiles a row, a flatter sheet. */
@media (max-width: 640px) {
	.card { padding: 20px 18px; border-radius: var(--radius); }
	.card.hero-appt { padding: 24px 20px 20px; }
	.choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sheet { border-radius: var(--radius) var(--radius) 0 0; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
	.voucher { padding: 28px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.nav-icon::before, .nav-icon::after, .envelope::before, .envelope::after, .suggest .glyph::before, .suggest .glyph::after,
	.btn.primary::before, .btn.primary::after, .btn::after { animation: none; }
	.nav-icon::after, .envelope::after, .suggest .glyph::after, .btn.primary:not(.busy)::after, .btn:not(.primary):not(.quiet):not(.danger):not(.busy)::after { display: none; }
	.nav a, .nav a:hover, .choices span, .choices label:hover span, .days button, .days button:hover, .times button, .times button:hover, a.stat, a.stat:hover { transition: none; transform: none; }
}


/* 0.1.29 responsive tiers (owner, 28 Oct: clients open their account from phones, tablets, laptops and desktops alike).
   Under 960px the account is the phone layout (top bar, tab row); from a laptop up the content column widens and
   type grows a step, so a big screen is not a phone column in the middle of it. */
@media (min-width: 1024px) {
	body { font-size: 16px; }
	.content { max-width: 940px; }
	.lede { max-width: 60ch; }
}
@media (min-width: 1440px) {
	:root { --rail: 284px; }
	.main { padding: 60px 56px 132px calc(var(--rail) + 56px); }
	.content { max-width: 1080px; }
	body { font-size: 16.5px; }
	h2 { font-size: 30px; }
	h3 { font-size: 23px; }
}
@media (min-width: 1920px) {
	:root { --rail: 304px; --james: 440px; }
	.content { max-width: 1220px; }
	body { font-size: 17.5px; }
	.nav a { font-size: 16px; padding: 12px 16px; }
	.rail .brand img { width: 200px; }
	h2 { font-size: 32px; }
	h3 { font-size: 24px; }
	.card { padding: 28px 30px; }
}

/* 0.1.37: a voucher's printable files (gift vouchers 1.1.0) */
.voucher-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.voucher-files .small { margin-right: 4px; color: var(--ink-soft, #6B6154); }
.voucher-files .file-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid #C9AF7E; background: #FFFDF8; color: #7A5E2E; font-size: 13px; font-weight: 500; text-decoration: none; }
.voucher-files .file-pill:hover, .voucher-files .file-pill:focus-visible { background: #F6E9CC; color: #5C451F; }

/* 0.1.44 (coins brief Part D): the cancel choice (credit pre-selected, card one tap away) and Artisa credit. House style:
   gold-light rims, ivory cards, the chosen option in soft gold with a gold rim. */
.settle { margin: 16px 0 6px; padding: 0; border: 0; display: grid; gap: 10px; }
.settle legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.settle-option {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--gold-soft); border-radius: var(--radius);
	background: var(--acp-card-bg, #FFFDF8); cursor: pointer; line-height: 1.45;
}
.settle-option input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--gold); }
.settle-option:has(input:checked) { border-color: var(--gold); background: linear-gradient(180deg, #FFFDF8, #F6EBD2); box-shadow: 0 4px 14px -8px rgba(74, 52, 16, .45); }
.settle-option:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.voucher.credit::before { content: 'ARTISA CREDIT'; }
