/* ==========================================================================
   /whatsapp/ — WhatsApp by Notify.lk landing page.
   A new page (no WordPress baseline), so these numbers are chosen, not measured,
   but it keeps the site's tokens: brand blue, Open Sans, the #eef0f2 band and
   the 1140px container. Breakpoints match site.css: 1024 / 767.
   ========================================================================== */

.page-whatsapp {
	/* brand blue, darkened so white text on it passes WCAG AA (4.85:1) */
	--wa-blue: #0f78b0;
	--wa-blue-dark: #0b5f8c;
	--wa-tint: #eaf5fb;
	--wa-green: #25d366;
	--wa-line: #dfe3e8;
	--wa-muted: #5f6b76;
	--wa-radius: 10px;
}

/* ------------------------------------------------------------- type */
.wa-section { padding: 70px 0; }
.wa-section--tint { background-color: var(--wa-tint); }

.wa-h2 {
	margin: 0 0 16px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
	text-align: center;
}
.wa-h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text); }
.wa-intro { max-width: 720px; margin: 0 auto 40px; font-size: 17px; text-align: center; color: var(--wa-muted); }

.wa-eyebrow {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wa-blue);
}
.wa-eyebrow--light { color: #bfe3f7; }

.wa-soon {
	display: inline-block;
	margin-left: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff4d6;
	color: #7a5300;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	vertical-align: middle;
	white-space: nowrap;
}

/* ---------------------------------------------------------- buttons */
.wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.wa-btn:focus-visible { outline: 3px solid #7cc4ea; outline-offset: 2px; }
.wa-btn--primary { background-color: var(--wa-blue); color: #fff; }
.wa-btn--primary:hover, .wa-btn--primary:focus { background-color: var(--wa-blue-dark); color: #fff; }
.wa-btn--primary[disabled] { opacity: .6; cursor: default; }
.wa-btn--chat { background-color: #fff; border-color: var(--wa-green); color: var(--text); }
.wa-btn--chat:hover, .wa-btn--chat:focus { background-color: #effcf3; color: var(--text); }
.wa-btn--outline { background-color: #fff; border-color: var(--wa-blue); color: var(--wa-blue); }
.wa-btn--outline:hover, .wa-btn--outline:focus { background-color: var(--wa-blue); color: #fff; }
.wa-btn__icon { flex: 0 0 auto; width: 20px; height: 20px; color: #1faa52; }

.wa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.wa-check { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: #1f9d55; }

/* ------------------------------------------------------------- hero */
.wa-hero { background: linear-gradient(180deg, var(--wa-tint) 0%, #f7fbfe 100%); overflow: hidden; }
.wa-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: 48px;
	padding: 70px 10px;
}
.wa-hero__title { margin: 0 0 18px; font-size: 46px; font-weight: 700; line-height: 1.15; color: var(--text); }
.wa-hero__lead { margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: #3d464f; }
.wa-hero__note {
	margin: 0;
	padding: 14px 16px;
	border-left: 4px solid var(--wa-green);
	background: rgba(255, 255, 255, .75);
	font-size: 15px;
	line-height: 1.55;
}
.wa-hero__note strong { display: block; margin-bottom: 2px; }
.wa-hero__visual { display: flex; justify-content: center; }

/* illustrative chat — decorative (role=img with a text alternative) */
.wa-phone {
	width: 100%;
	max-width: 340px;
	border: 10px solid #1f2a33;
	border-radius: 34px;
	background: #efeae2;
	box-shadow: 0 24px 48px rgba(20, 60, 90, .18);
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
}
.wa-phone__bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #0b5f54; color: #fff; }
.wa-phone__avatar {
	display: flex; align-items: center; justify-content: center;
	flex: 0 0 auto; width: 34px; height: 34px;
	border-radius: 50%; background: #fff; color: #0b5f54;
	font-size: 13px; font-weight: 700;
}
.wa-phone__who { display: flex; flex-direction: column; }
.wa-phone__name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.wa-phone__badge { width: 15px; height: 15px; color: #25d366; }
.wa-phone__status { font-size: 12px; opacity: .85; }
.wa-phone__chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 18px; }

.wa-bubble {
	position: relative;
	align-self: flex-start;
	max-width: 88%;
	padding: 8px 10px 6px;
	border-radius: 0 10px 10px 10px;
	background: #fff;
	color: #1f2a33;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.wa-bubble p { margin: 0 0 2px; }
.wa-bubble--in { align-self: flex-end; border-radius: 10px 0 10px 10px; background: #d9fdd3; }
.wa-bubble__meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; color: #667781; }
.wa-bubble__ticks { width: 17px; height: 11px; color: #34b7f1; }
.wa-bubble__buttons { display: flex; flex-direction: column; margin: 6px -10px -6px; }
.wa-bubble__buttons span {
	padding: 8px 10px;
	border-top: 1px solid #e9edef;
	color: #027eb5;
	font-weight: 600;
	text-align: center;
}

/* ----------------------------------------------------- SMS vs WhatsApp */
.wa-table-wrap {
	max-width: 960px;
	margin: 0 auto;
	border: 1px solid var(--wa-line);
	border-radius: var(--wa-radius);
	background: #fff;
	overflow: hidden;
}
.wa-compare { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.wa-compare th, .wa-compare td { padding: 14px 18px; border-bottom: 1px solid var(--wa-line); text-align: left; vertical-align: top; }
.wa-compare tbody tr:last-child th, .wa-compare tbody tr:last-child td { border-bottom: 0; }
.wa-compare thead th { font-size: 15px; font-weight: 700; color: var(--text); background: #f7f8fa; }
.wa-compare thead td { background: #f7f8fa; }
.wa-compare thead .wa-compare__wa { background: #e3f6ea; color: #0b5d2e; }
.wa-compare tbody th { width: 18%; font-weight: 700; color: var(--wa-muted); }
.wa-compare tbody td { width: 41%; }
.wa-compare tbody .wa-compare__wa { background: #f4fcf7; }

.wa-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 24px auto 0; }
.wa-callout { padding: 20px 22px; border-radius: var(--wa-radius); background: #fff; border: 1px solid var(--wa-line); }
.wa-callout p { margin: 0; font-size: 16px; }

/* --------------------------------------------------------- why WhatsApp */
.wa-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}
.wa-feature { text-align: center; }
.wa-feature__icon { width: 52px; height: 52px; margin: 0 auto 16px; color: var(--brand); }
.wa-feature p { margin: 0; font-size: 15px; color: #3d464f; }

/* ------------------------------------------------------------ use cases */
.wa-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.wa-use { padding: 24px 22px; border-radius: var(--wa-radius); background: #fff; box-shadow: 0 1px 3px rgba(20, 60, 90, .1); }
.wa-use__icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--brand); }
.wa-use p { margin: 0; font-size: 15px; color: #3d464f; }

/* -------------------------------------------------------------- pricing */
.wa-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.wa-plan {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid #e1e1e1;
	border-radius: var(--wa-radius);
	background: #fff;
}
.wa-plan__name { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--text); }
.wa-plan__price { margin: 0; font-size: 16px; color: var(--wa-muted); }
.wa-plan__amount { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--text); }
.wa-plan__lkr { margin: 4px 0 20px; font-size: 14px; color: var(--wa-muted); }
.wa-plan__list { flex: 1 1 auto; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--wa-line); list-style: none; }
.wa-plan__list li { display: flex; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.wa-plan__cta { width: 100%; }

.wa-fine { max-width: 1000px; margin: 28px auto 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--wa-muted); }
.wa-fine li { margin-bottom: 6px; }
.wa-fine strong { color: var(--text); }

/* ----------------------------------------------------------- onboarding */
.wa-onboard-section { padding-top: 0; }
.wa-onboard {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: 40px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 44px 48px;
	border-radius: 14px;
	background: #10364f;
	color: #fff;
}
.wa-onboard__title { color: #fff; text-align: left; }
.wa-onboard__copy p:last-child { margin: 0; font-size: 17px; color: #d8e6ef; }
.wa-onboard__list { margin: 0; padding: 0; list-style: none; }
.wa-onboard__list li { display: flex; gap: 12px; margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.wa-onboard__list li:last-child { margin-bottom: 0; }
.wa-onboard__list .wa-check { color: #5fe08f; }

/* ---------------------------------------------------------- how it works */
.wa-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.wa-step { position: relative; }
.wa-step__num {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin-bottom: 14px;
	border-radius: 50%;
	background: var(--wa-blue);
	color: #fff;
	font-size: 17px; font-weight: 700;
}
.wa-step p { margin: 0 0 8px; font-size: 15px; color: #3d464f; }
.wa-step__later .wa-soon { margin: 0 4px 0 0; }

/* ------------------------------------------------------------ developers */
/* the WhatsApp request has the longer lines, so its column is wider */
.wa-code-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; }
.wa-code { margin: 0; min-width: 0; }
.wa-code__title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.wa-code__pre {
	margin: 0;
	padding: 18px 20px;
	border-radius: var(--wa-radius);
	background: #1f2a33;
	color: #e6edf3;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
	overflow-wrap: normal;
}
.wa-dev-more { margin: 24px 0 0; text-align: center; font-size: 16px; }

/* ----------------------------------------------------------- early access */
.wa-access { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.wa-access__intro .wa-h2 { text-align: left; }
.wa-access__intro p { font-size: 17px; }
.wa-access__call { font-size: 15px !important; color: var(--wa-muted); }

.wa-form {
	position: relative;
	padding: 32px;
	border: 1px solid var(--wa-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 60, 90, .08);
}
.wa-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wa-field { display: block; min-width: 0; margin: 0 0 18px; }
.wa-field__label { display: block; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.wa-field__optional { font-weight: 400; color: var(--wa-muted); }
.wa-field__input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #c5ccd3;
	border-radius: 6px;
	background: #fff;
	color: #1f2124;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
}
.wa-field__input::placeholder { color: #8a949d; }
.wa-field__input:focus { outline: 0; border-color: var(--wa-blue); box-shadow: 0 0 0 3px rgba(15, 120, 176, .2); }
.wa-field__select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235f6b76' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
}
.wa-field__textarea { resize: vertical; }
.wa-field--choices { border: 0; padding: 0; }
.wa-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.wa-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #c5ccd3;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
}
.wa-choice input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--wa-blue); }
.wa-choice:has(input:checked) { border-color: var(--wa-blue); background: var(--wa-tint); }
.wa-choice:has(input:focus-visible) { outline: 3px solid #7cc4ea; outline-offset: 1px; }

.wa-form__submit { margin-top: 6px; }
.wa-form__submit .wa-btn { width: 100%; }
.wa-form__status { margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.wa-form__status--success { background: #e7f7ee; color: #155d33; }
.wa-form__status--error { background: #fdecea; color: #8a1f17; }
.wa-form__small { margin: 14px 0 0; font-size: 13px; color: var(--wa-muted); }

/* The no-JS submit comes back to /whatsapp/?sent=1#early-access-sent (or
   #early-access-error), so :target is what shows the right notice. */
.wa-form__notice { display: none; margin: 0 0 20px; padding: 12px 14px; border-radius: 6px; font-size: 15px; outline: 0; }
.wa-form__notice:target { display: block; }
.wa-form__notice--success { background: #e7f7ee; color: #155d33; }
.wa-form__notice--error { background: #fdecea; color: #8a1f17; }

/* Without JavaScript there is no reCAPTCHA token, so production rejects the
   post (missing_recaptcha). Say so before anyone fills the form in. */
.wa-form__noscript { margin: 0 0 20px; padding: 12px 14px; border-radius: 6px; background: #fff4d6; color: #5c3d00; font-size: 15px; }
.wa-form__noscript a { color: inherit; text-decoration: underline; }

/* honeypot — off-screen wrapper, the input itself stays a normal rendered
   control so headless bots that check `display` still fill it in. */
.wa-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------- FAQ */
.wa-accordion { max-width: 860px; margin: 32px auto 20px; background: #fff; }
.wa-accordion .accordion__title { line-height: 1.35; }
.wa-accordion .accordion__content p:last-child { margin-bottom: 0; }
.wa-faq-more { margin: 0; text-align: center; font-size: 16px; }

/* ------------------------------------------------------------ powered by */
.wa-powered { padding: 22px 0; border-top: 1px solid var(--wa-line); text-align: center; }
.wa-powered p { margin: 0; font-size: 15px; color: var(--wa-muted); }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 1024px) {
	.wa-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; padding: 56px 20px; }
	.wa-hero__title { font-size: 38px; }
	.wa-features, .wa-uses, .wa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wa-plans { gap: 16px; }
	.wa-plan { padding: 24px 18px; }
	.wa-access { gap: 32px; }
	.wa-section > .container > .col { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 767px) {
	.wa-section { padding: 48px 0; }
	.wa-section > .container > .col { padding-left: 16px; padding-right: 16px; }
	.wa-h2 { font-size: 26px; }
	.wa-intro { margin-bottom: 28px; font-size: 16px; }

	.wa-hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 16px 48px; }
	.wa-hero__title { font-size: 31px; }
	.wa-hero__lead { font-size: 17px; }
	.wa-actions .wa-btn { width: 100%; }
	.wa-phone { max-width: 320px; }

	/* the comparison stacks into one card per row at phone width */
	.wa-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.wa-compare, .wa-compare tbody, .wa-compare tr, .wa-compare th, .wa-compare td { display: block; width: auto !important; }
	.wa-compare tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--wa-line); }
	.wa-compare tbody tr:last-child { border-bottom: 0; }
	.wa-compare tbody th, .wa-compare tbody td { padding: 0; border: 0; background: none !important; }
	.wa-compare tbody th { margin-bottom: 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
	/* label in a fixed gutter; absolute so links inside the cell stay inline */
	.wa-compare tbody td { position: relative; margin-top: 6px; padding-left: 102px; font-size: 15px; }
	.wa-compare tbody td::before { content: "SMS"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--wa-muted); }
	.wa-compare tbody td.wa-compare__wa::before { content: "WhatsApp"; color: #0b5d2e; }
	.wa-callouts { grid-template-columns: 1fr; }

	.wa-features, .wa-uses, .wa-steps, .wa-plans, .wa-code-grid { grid-template-columns: 1fr; }
	.wa-features { gap: 28px; }
	.wa-plans { max-width: 420px; }

	.wa-onboard { grid-template-columns: 1fr; gap: 24px; padding: 32px 22px; }
	.wa-onboard__title { font-size: 26px; }

	.wa-code__pre { font-size: 12.5px; padding: 14px 16px; }

	.wa-access { grid-template-columns: 1fr; gap: 24px; }
	.wa-form { padding: 22px 18px; }
	.wa-form__row, .wa-choices { grid-template-columns: 1fr; }
}
