/*
 * The sign-up / log-in box, and the signed-out account page - storefront gate
 * S2.
 *
 * EVERY VALUE IS THE FRAME'S. The box is `NovaPep Signup.dc.html` in
 * handoff-3009/design_handoff_novapep_account_gate: each element carries its
 * styles inline and the state-dependent ones come from renderVals(), so the
 * numbers below are read from there, not from the README's prose (traps.md
 * #33). The account page around it is frames 1a / 1b / 1c of
 * `NovaPep Account Gate.dc.html`.
 *
 * WHY THE BOX DECLARES ITS WHOLE INHERITED SET. The frame's box sits in a
 * document whose body is the browser default - 16px, weight 400, line-height
 * normal - while this theme's body is 16px / 500 / 1.6. An element the frame
 * leaves undeclared inherits the former there and the latter here (traps.md
 * #42), so the root restates the frame's. And where the frame uses a <button>
 * whose user-agent values were never overridden (13.33px, black), the build
 * restates those too: they paint nothing, but they are what the frame
 * computes, and the measurement is against the frame.
 *
 * FONT STACKS are the frame's literal "Sora", sans-serif and "Space Grotesk",
 * sans-serif rather than the theme's tokens, so the computed family string
 * matches the frame exactly. The faces are the theme's own self-hosted ones.
 *
 * BREAKPOINTS. The frame draws 390 / 1240 / 1600. The compact box is the
 * frame's `compact` prop and is drawn only at 390, so it switches at this
 * theme's phone/tablet line, 768 (gate spec A6). The account page's 1240 and
 * 1600 values switch at 1520, the card grid's own line. Mobile first,
 * ascending min-width, and nothing after the last breakpoint (traps.md #2).
 *
 * NO CLASS HERE IS ONE OF WooCommerce'S OR DAWN'S. `.button`, `.field`,
 * `.form-row` and `.input-text` all carry global rules in drawer.css or
 * WooCommerce's own sheets, so the box's markup uses none of them.
 */

/* ------------------------------------------------------------- the card */

.np-signup {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 26px 20px 24px;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(20, 22, 26, 0.05), 0 24px 60px rgba(20, 22, 26, 0.10);
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	color: #14161A;
	text-align: start;
}

/*
 * The frame has no global border-box reset and this theme does (base.css). So
 * inside the box everything is content-box again, as in the frame, and the
 * frame's own border-box elements - every <button>, the rows it draws as
 * buttons, and each element below that declares it - say so explicitly.
 * Measured 01/10/26: with this, 1600 create matches the frame on every
 * computed property; without it, box-sizing differed on 33 elements.
 */
.np-signup * {
	box-sizing: content-box;
}

.np-signup button,
.np-signup .np-signup__check {
	box-sizing: border-box;
}

.np-signup a {
	color: #14161A;
	text-decoration: none;
}

.np-signup a:hover {
	color: #4A5568;
}

.np-signup__navform {
	display: none;
}

/* ------------------------------------------------------- create / log in */

.np-signup__main {
	display: flex;
	flex-direction: column;
}

.np-signup__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #2F3742;
}

.np-signup__title {
	margin: 8px 0 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.028em;
	line-height: 1.1;
	color: #14161A;
	text-wrap: balance;
}

.np-signup__title--sub {
	margin: 18px 0 0;
	text-wrap: wrap;
}

.np-signup__title--done {
	margin: 8px 0 0;
	text-wrap: wrap;
}

.np-signup__lede {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	color: #2F3742;
}

.np-signup__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-top: 22px;
	padding: 4px;
	background: #EEF2F6;
	border-radius: 12px;
}

.np-signup__tab {
	height: 42px;
	margin: 0;
	padding: 1px 6px;
	background: transparent;
	color: #2F3742;
	border: none;
	border-radius: 9px;
	box-shadow: none;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
}

.np-signup__tab.is-on {
	background: #FFFFFF;
	color: #14161A;
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(20, 22, 26, 0.08), 0 2px 8px rgba(20, 22, 26, 0.06);
}

.np-signup__google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: 100%;
	height: 52px;
	margin: 18px 0 0;
	padding: 1px 6px;
	background: #FFFFFF;
	border: 1.5px solid #CFD8E2;
	border-radius: 11px;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: normal;
	color: #14161A;
}

.np-signup__google svg {
	display: inline;
	max-width: none;
	height: 18px;
}

.np-signup__or {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
	margin: 18px 0;
}

.np-signup__or-rule {
	height: 1px;
	background: #E1E4E8;
}

.np-signup__or-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #4A5568;
}

.np-signup__create,
.np-signup__login {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

/*
 * Confirm, a new Google account's 18+ step (28/10/26). Not in the frame: the
 * box's own pieces, with the gap the Google button keeps under the tabs.
 */
.np-signup__create--gconfirm {
	margin-top: 18px;
}

.np-signup__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.np-signup__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #14161A;
}

.np-signup__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.np-signup__input {
	width: 100%;
	height: 50px;
	margin: 0;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #CFD8E2;
	border-radius: 11px;
	padding: 0 15px;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #14161A;
	outline: none;
}

.np-signup input::placeholder {
	color: #8A94A0;
	opacity: 1;
}

/* ------------------------------------------------------- the email field */

.np-signup__email {
	position: relative;
	z-index: 5;
}

.np-signup__email-box {
	display: flex;
	align-items: stretch;
	height: 50px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #CFD8E2;
	border-radius: 11px;
	overflow: hidden;
}

.np-signup__email.is-open .np-signup__email-box {
	border-color: #14161A;
	border-radius: 11px 11px 0 0;
}

.np-signup__email-local,
.np-signup__email-full {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
	background: transparent;
	border: none;
	padding: 0 4px 0 15px;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #14161A;
	outline: none;
}

.np-signup__email-full {
	padding: 0 8px 0 15px;
}

.np-signup__domain {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 9px;
	height: 100%;
	margin: 0;
	padding: 0 14px 0 13px;
	background: #F6F8FA;
	border: none;
	border-left: 1.5px solid #E1E4E8;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: normal;
	color: #14161A;
	white-space: nowrap;
}

.np-signup__caret {
	display: flex;
	transform: none;
	transition: transform 160ms ease;
}

.np-signup__email.is-open .np-signup__caret {
	transform: rotate(180deg);
}

.np-signup__caret svg {
	display: inline;
	max-width: none;
	height: 6px;
}

.np-signup__domains {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	margin-top: -1.5px;
	background: #FFFFFF;
	border: 1.5px solid #14161A;
	border-top: 1px solid #E1E4E8;
	border-radius: 0 0 11px 11px;
	box-shadow: 0 18px 40px rgba(20, 22, 26, 0.14);
	overflow: hidden;
}

.np-signup__domain-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 40px;
	flex-shrink: 0;
	margin: 0;
	padding: 0 15px;
	background: #FFFFFF;
	color: #14161A;
	border: none;
	border-bottom: 1px solid #EDEFF2;
	cursor: pointer;
	text-align: left;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
}

.np-signup__domain-opt svg {
	display: none;
	max-width: none;
	height: 14px;
}

.np-signup__domain-opt.is-on {
	background: #14161A;
	color: #FFFFFF;
	font-weight: 600;
	border-bottom-color: #14161A;
}

.np-signup__domain-opt.is-on svg {
	display: inline;
}

/* The frame's Other row is a <button> whose own font-size is never set. */
.np-signup__domain-other {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin: 0;
	padding: 11px 15px 12px;
	background: #F6F8FA;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: "Sora", sans-serif;
	font-size: 13.3333px;
	line-height: normal;
	color: #000000;
}

.np-signup__domain-other-k {
	font-size: 15px;
	font-weight: 600;
	color: #14161A;
}

.np-signup__domain-other-sub {
	font-size: 13px;
	font-weight: 500;
	color: #4A5568;
}

.np-signup__other {
	display: flex;
	align-items: center;
	height: 50px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #CFD8E2;
	border-radius: 11px;
	overflow: hidden;
}

/* ------------------------------------------------------- the two ticks */

.np-signup__checks {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 2px;
}

/*
 * The frame draws each row as a <button>. Here it is a <label> around a real
 * checkbox, so the form posts without JavaScript. The row restates what the
 * frame's button computes and never overrides - 13.33px, black - which paints
 * nothing, because every child sets its own.
 */
.np-signup__check {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	gap: 12px;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 8px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: "Sora", sans-serif;
	font-size: 13.3333px;
	line-height: normal;
	color: #000000;
}

.np-signup__check--mail {
	grid-template-columns: 22px 1fr;
	align-items: start;
}

/* Visually hidden, still focusable and still posted. */
.np-signup__native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.np-signup__box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #AEB8C4;
	border-radius: 6px;
}

.np-signup__check--mail .np-signup__box {
	margin-top: 1px;
}

.np-signup__box svg {
	display: none;
	max-width: none;
	height: 13px;
}

.np-signup__native:checked + .np-signup__box {
	background: #14161A;
	border-color: #14161A;
}

.np-signup__native:checked + .np-signup__box svg {
	display: inline;
}

/* Keyboard focus only - the frame draws no focus state. */
.np-signup__native:focus-visible + .np-signup__box {
	outline: 2px solid #14161A;
	outline-offset: 2px;
}

.np-signup__check-text {
	font-size: 15px;
	font-weight: 600;
	color: #14161A;
}

.np-signup__tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	background: #F2F5F8;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2F3742;
}

.np-signup__check-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.np-signup__check-line {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: #2F3742;
}

.np-signup__check-sub {
	font-size: 13px;
	font-weight: 500;
	color: #4A5568;
}

/* A field no person sees. Off-screen rather than display:none, which some
   form-filling scripts read as "skip this one". */
.np-signup__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------- buttons, lines */

.np-signup__submit {
	width: 100%;
	height: 54px;
	margin: 4px 0 0;
	padding: 1px 6px;
	background: #14161A;
	color: #FFFFFF;
	border: none;
	border-radius: 11px;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
}

.np-signup__submit.is-off {
	background: #E1E6EC;
	color: #6B7480;
	cursor: not-allowed;
}

.np-signup__submit--forgot {
	margin-top: 18px;
}

.np-signup__submit--done {
	margin-top: 22px;
}

.np-signup__hint {
	margin: -4px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: #8A5A12;
}

.np-signup__hint.is-ready {
	color: #4A5568;
}

.np-signup__terms {
	margin: 4px 0 0;
	padding-top: 16px;
	border-top: 1px solid #EDEFF2;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: #2F3742;
}

.np-signup__terms a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.np-signup__note {
	margin: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: #4A5568;
}

.np-signup__textlink {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
	color: #2F3742;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.np-signup__textlink--ink {
	color: #14161A;
}

.np-signup__result .np-signup__textlink {
	margin-top: 14px;
}

.np-signup__pw {
	display: flex;
	align-items: center;
	height: 50px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #CFD8E2;
	border-radius: 11px;
	overflow: hidden;
}

.np-signup__pw-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
	background: transparent;
	border: none;
	padding: 0 8px 0 15px;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #14161A;
	outline: none;
}

.np-signup__pw-toggle,
.np-signup__back-list {
	flex-shrink: 0;
	height: 100%;
	margin: 0;
	padding: 0 15px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
	color: #2F3742;
}

.np-signup__back-list {
	padding: 0 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* ------------------------------------------------------- forgot, sent, done */

.np-signup__forgot {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.np-signup__back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	color: #2F3742;
}

.np-signup__back-arrow {
	font-size: 15px;
}

.np-signup__field--forgot {
	margin-top: 20px;
}

.np-signup__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.np-signup__disc {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	background: #F2F5F8;
	border-radius: 50%;
	color: #14161A;
}

.np-signup__disc svg {
	display: inline;
	max-width: none;
	height: auto;
}

.np-signup__disc--ok {
	background: #1E8E4A;
}

.np-signup__ok {
	margin-top: 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1E8E4A;
}

.np-signup__msg {
	margin: 10px 0 0;
	max-width: 38ch;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	color: #2F3742;
}

.np-signup__msg--done {
	max-width: 40ch;
}

.np-signup__msg strong {
	font-weight: 600;
	color: #14161A;
}

.np-signup__outline {
	width: 100%;
	height: 52px;
	margin: 22px 0 0;
	padding: 1px 6px;
	background: #FFFFFF;
	color: #14161A;
	border: 1.5px solid #14161A;
	border-radius: 11px;
	cursor: pointer;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: normal;
}

/* ------------------------------------------------------- the signed-out page */

/*
 * Frames 1a / 1b / 1c: the box centred on the page ground, three perks under
 * it. The page container's gutter is undone so the phone frame's own 14px
 * gutter is the one that applies.
 */
.np-signin {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-inline: calc(-1 * var(--np-gutter));
	padding: 20px 14px 28px;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	color: #14161A;
}

/* Content-box, as in the frame (see the box's own rule at the top). */
.np-signin,
.np-signin__perks,
.np-signin__perks * {
	box-sizing: content-box;
}

.np-signin__perks {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 10px;
	margin-top: 18px;
	padding: 0 6px;
}

.np-signin__perk {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #2F3742;
}

.np-signin__perk-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	background: #FFFFFF;
	border-radius: 50%;
	color: #2F3742;
}

.np-signin__perk-icon svg {
	display: inline;
	max-width: none;
	height: 16px;
}

/* ============================================================= 768 */

@media (min-width: 768px) {
	.np-signup {
		padding: 34px 34px 30px;
	}

	.np-signup__title {
		font-size: 29px;
	}

	.np-signin {
		padding: 52px 0 60px;
	}

	.np-signin .np-signup {
		width: 460px;
	}

	.np-signin__perks {
		flex-direction: row;
		align-self: center;
		gap: 26px;
		margin-top: 24px;
		padding: 0;
	}
}

/* ============================================================= 1520 */

@media (min-width: 1520px) {
	.np-signin {
		padding: 64px 0 72px;
	}

	.np-signin .np-signup {
		width: 480px;
	}

	.np-signin__perks {
		gap: 32px;
		margin-top: 28px;
	}
}

/*
 * The [hidden] attribute is how signup.js shows one view at a time, and the
 * browser's own display:none for it loses to any class that sets display. Two
 * classes beat one, and this sits after the breakpoints so nothing can come
 * later and undo it.
 */
.np-signup [hidden] {
	display: none;
}
