/* =========================================================================
   myownsecure.space — public website
   Brand palette (from branding/logo.svg):
     --teal   #10464c   dark teal   (primary / dark surfaces)
     --green  #aed586   light green (accent)
     --paper  #f4fafa   near-white  (light surface)
   ========================================================================= */

:root {
	--teal:          #10464c;
	--teal-700:      #0c363b;
	--teal-900:      #082629;
	--teal-300:      #2e6e75;
	--green:         #aed586;
	--green-600:     #8cbb5f;
	--green-100:     #eaf4dd;
	--paper:         #f4fafa;
	--white:         #ffffff;
	--ink:           #17282a;
	--ink-soft:      #45585a;
	--ink-faint:     #6a7c7e;
	--line:          #dbe7e8;
	--line-soft:     #e8f0f0;

	--maxw:          1160px;
	--radius:        14px;
	--radius-sm:     9px;
	--shadow:        0 1px 2px rgba(16, 70, 76, .06), 0 8px 30px rgba(16, 70, 76, .08);
	--shadow-lg:     0 20px 60px rgba(16, 70, 76, .18);

	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	--space:         clamp(3.5rem, 7vw, 6rem);
}

/* ---- reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	/* matches .site-footer's background so the overscroll/rubber-band bounce shows teal, not white */
	background: var(--teal-900);
}
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--white);
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--teal); font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}
.container--narrow { max-width: 820px; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
	padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
	transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
	text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--login { background: var(--green); color: var(--teal-900); }
.btn--login:hover { background: var(--green-600); color: var(--teal-900); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---- header / nav ------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list {
	display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0;
}
.site-nav__list a { color: var(--ink-soft); font-weight: 500; font-size: .97rem; }
.site-nav__list a:hover { color: var(--teal); text-decoration: none; }
.site-nav__actions { display: flex; align-items: center; gap: .9rem; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch__button {
	display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .9rem;
	background: var(--paper); color: var(--teal); border: 1px solid var(--line);
	padding: .5rem .8rem; border-radius: 999px; cursor: pointer;
}
.lang-switch__button:hover { border-color: var(--green-600); }
.lang-switch__globe { font-size: 1rem; }
.lang-switch__menu {
	position: absolute; right: 0; top: calc(100% + .5rem); min-width: 160px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); list-style: none; margin: 0; padding: .35rem;
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .15s ease; z-index: 200;
}
.lang-switch.open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu a {
	display: block; padding: .5rem .7rem; border-radius: 6px; color: var(--ink-soft); font-size: .95rem;
}
.lang-switch__menu a:hover { background: var(--paper); color: var(--teal); text-decoration: none; }
.lang-switch__menu a[aria-current="true"] { color: var(--teal); font-weight: 700; background: var(--green-100); }

/* mobile nav toggle */
.nav-toggle {
	display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
	background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle__bar { height: 2px; background: var(--teal); border-radius: 2px; transition: .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero --------------------------------------------------------------- */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		linear-gradient(180deg, rgba(8,38,41,.78), rgba(12,54,59,.90)),
		var(--teal) url("/assets/img/background.jpg") center/cover no-repeat;
}
.hero__inner { padding-block: clamp(4.5rem, 11vw, 8rem); max-width: 900px; }
.hero__headline {
	color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.1; margin-bottom: 1.1rem;
	text-wrap: balance;
}
.hero__subheadline {
	color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 42em; margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- sections ----------------------------------------------------------- */
.section { padding-block: var(--space); }
.section--alt { background: var(--paper); }
.section--intro { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; margin-bottom: .6rem; }
.section__intro, .section__note { text-align: center; color: var(--ink-soft); max-width: 46em; margin-inline: auto; }
.section__intro { margin-bottom: 2.5rem; font-size: 1.1rem; }
.section__note { margin-top: 2.2rem; }
.section__cta { text-align: center; margin-top: 2.2rem; }
.lead {
	font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink-soft); text-align: center;
	max-width: 52em; margin-inline: auto; line-height: 1.6;
}

/* ---- grids -------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 900px; margin-inline: auto; }

/* value card */
.card {
	background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
	padding: 1.6rem 1.5rem; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__title { font-size: 1.18rem; margin-bottom: .5rem; }
.card__title::before {
	content: ""; display: block; width: 40px; height: 4px; border-radius: 3px;
	background: linear-gradient(90deg, var(--green), var(--green-600)); margin-bottom: 1rem;
}
.card__body { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* feature */
.feature { padding: 1.4rem .4rem; }
.feature__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
	color: var(--teal); background: var(--green-100); border-radius: 14px; margin-bottom: 1rem;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__title { font-size: 1.15rem; margin-bottom: .4rem; }
.feature__body { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---- privacy ------------------------------------------------------------ */
.section--privacy {
	background:
		radial-gradient(1200px 400px at 50% -10%, rgba(174,213,134,.16), transparent 70%),
		var(--teal);
	color: #fff;
}
.section--privacy .section__title { color: #fff; }
.privacy { max-width: 780px; margin-inline: auto; text-align: center; }
.privacy p { color: rgba(255,255,255,.9); font-size: 1.08rem; }

/* ---- storage plans ------------------------------------------------------ */
.plan {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
	display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.plan--featured { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan__size { font-size: 2.1rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.plan__period { color: var(--ink-faint); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.plan__cta { margin-top: 1.1rem; }

/* ---- how it works ------------------------------------------------------- */
.steps { list-style: none; counter-reset: none; margin: 2.8rem auto 0; padding: 0; max-width: 760px; display: grid; gap: 1.3rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.step__num {
	flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
	background: var(--teal); color: #fff; border-radius: 50%; font-weight: 800; font-size: 1.15rem;
}
.step__title { font-size: 1.12rem; margin-bottom: .25rem; }
.step__body p { margin: 0; color: var(--ink-soft); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { margin-top: 2.4rem; display: grid; gap: .8rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
	cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.3rem; font-weight: 600; color: var(--teal);
	position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; font-weight: 400; color: var(--green-600); transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
	background: linear-gradient(120deg, var(--teal), var(--teal-300));
	color: #fff; text-align: center;
}
.cta-band__inner { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band__title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta-band__body { color: rgba(255,255,255,.9); max-width: 40em; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* ---- contact ------------------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; margin-top: 2.6rem; align-items: start; }
.contact__subtitle { font-size: 1.05rem; color: var(--teal); margin: 1.4rem 0 .3rem; }
.contact__info > .contact__subtitle:first-child { margin-top: 0; }
.contact__provider { margin: 0 0 .2rem; font-size: 1.1rem; }
.contact__address { font-style: normal; color: var(--ink-soft); margin-bottom: .4rem; }
.contact__intro { color: var(--ink-soft); }

.contact-form { display: grid; gap: 1rem; margin-top: .6rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field__hint { font-weight: 400; color: var(--ink-faint); font-size: .85rem; }
.field input, .field textarea {
	font: inherit; color: var(--ink); background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; width: 100%;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(140,187,95,.25);
}
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-error { margin: 0; font-size: .85rem; color: #b3261e; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
	border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.15);
}

.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .97rem; }
.notice--success { background: var(--green-100); color: var(--teal-900); border: 1px solid var(--green-600); }
.notice--error { background: #fdecea; color: #7a1c15; border: 1px solid #e0a19b; }

/* ---- toast notifications -------------------------------------------------
   Vanilla JS/CSS by design (ADR-0005 #1 — no build step, no library). Reuses
   .notice's success/error palette (not its background) rather than a single
   dark color: the contact form sits right above the dark-teal footer, and a
   dark-teal toast disappeared against it — a light surface stays legible
   regardless of what's scrolled behind it. */
.toast {
	position: fixed; left: 50%; bottom: 1.6rem; z-index: 1000;
	max-width: min(90vw, 26rem); padding: .85rem 1.3rem;
	border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.4;
	box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0;
	transform: translate(-50%, .6rem); transition: opacity .25s ease, transform .25s ease;
}
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--success { background: var(--green-100); color: var(--teal-900); border: 1px solid var(--green-600); }
.toast--error { background: #fdecea; color: #7a1c15; border: 1px solid #e0a19b; }

/* ---- legal / terms page ------------------------------------------------- */
.section--legal { padding-block: var(--space); }
.legal__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal__note { color: var(--ink-faint); font-style: italic; margin-bottom: 1.5rem; }
.legal__body { color: var(--ink-soft); }
.legal__back { margin-top: 2.5rem; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.8); }
.site-footer__inner {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem;
}
.site-footer__logo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer__tagline { color: rgba(255,255,255,.7); max-width: 26em; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--green); text-decoration: none; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; flex-wrap: wrap; font-size: .9rem; }
.site-footer__bar p { margin: 0; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
	.contact__grid { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
		gap: 0; padding: 1rem clamp(1.1rem, 4vw, 2.2rem) 1.6rem; border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - 74px); overflow-y: auto;
	}
	.site-nav.open { transform: translateY(0); }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__list a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
	.site-nav__actions { margin-top: 1.1rem; justify-content: space-between; }
	.btn--login { flex: 1; }
}

@media (max-width: 520px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.hero__actions .btn { flex: 1; }
	.plan--featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
