:root {
  --brand: #1F7A82;
  --brand-dark: #165a60;
  --ink: #132422;
  --muted: #54706E;
  --soft: #EEF5F4;
  --border: #C7DAD8;
  --bg: #ffffff;
  --green: #2E9E5B;
  --page: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #E6F0EF; --muted: #9DB7B5; --soft: #12302f; --border: #2a4a49; --bg: #0c1c1b; --brand: #4DB6BE; --brand-dark: #7ccfd6; --green: #4FCB82; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 18px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 28px; }
.narrow > * { max-width: 780px; }
.narrow > .newslist, .narrow > #news-post { max-width: 980px; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* header: logo on the left, the pages in one line */
.top { border-bottom: 4px solid var(--brand); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top .wrap { max-width: 1320px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { flex: none; }
.brand img { display: block; height: 56px; width: auto; max-width: 70vw; }
.menu { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 16px; font-size: 16px; color: var(--ink); cursor: pointer; }
.nav { display: flex; flex: 1; align-items: center; justify-content: space-between; margin-left: 28px; gap: 0 16px; flex-wrap: nowrap; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 2px; font-size: 15.5px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.nav a.portal { background: var(--brand); color: #fff; border-radius: 6px; padding: 9px 16px; border: 0; margin-left: 2px; }
.nav a.portal:hover { background: var(--brand-dark); color: #fff; }
.nav span.portal.soon { background: #E3EDEC; color: var(--brand-dark); border-radius: 6px; padding: 9px 16px; margin-left: 2px; font-weight: 600; cursor: default; white-space: nowrap; }

.hero { background: linear-gradient(135deg, var(--brand) 0%, #0d4a50 100%); color: #fff; padding: 96px 0 104px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 22px; }
.hero p { font-size: 1.25rem; max-width: 640px; margin: 0 0 26px; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 26px; border-radius: 6px; text-decoration: none; font-weight: 700; border: 2px solid var(--brand); cursor: pointer; font-size: 17px; line-height: 1.4; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.hero .btn { background: #fff; color: #0d4a50; border-color: #fff; margin-right: 8px; }
.hero .btn.ghost, .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn:hover { background: var(--soft); }

.band { padding: 56px 28px 12px; }
.band h2, .content h2 { color: var(--brand); margin: 1.4em 0 .5em; line-height: 1.3; }
.band h2 { margin-top: 0; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--border); border-left: 5px solid var(--brand); border-radius: 8px; padding: 20px 24px; background: var(--soft); }
.card h3 { margin: 0 0 8px; color: var(--brand); }
.card.partner img { height: 110px; width: auto; max-width: 100%; object-fit: contain; object-position: center; display: block; margin: 0 auto 14px; }
.content { padding: 40px 28px 56px; }
.content > h1:first-child { margin-top: 0; }
.content img { max-width: min(100%, 460px); height: auto; display: block; margin: 16px 0; border-radius: 8px; }
.content h1 { font-size: 2.4rem; line-height: 1.2; color: var(--ink); margin: .3em 0 .6em; }
.content h3 { margin: 1.8em 0 .5em; font-size: 1.35rem; }
.content h5 { font-size: 1.1rem; margin: 1.6em 0 .3em; color: var(--brand); }
.content p { margin: 0 0 1em; }
.content ul { padding-left: 1.3em; }
.content li { margin-bottom: .3em; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0 20px; }
.content small { color: var(--muted); }

/* about us: text, then the map with its sentence beside it */
.about-text { max-width: 820px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 40px; }
.split > img { max-width: 100%; width: 100%; margin: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.split h2 { margin-top: 0; font-size: 1.6rem; }
.content .split img.supplier { width: 200px; max-width: 60%; box-shadow: none; margin-top: 24px; }
.split.feature { grid-template-columns: 240px minmax(0, 1fr); margin: 40px 0 8px; }
.split.feature > img { box-shadow: none; max-width: 240px; }
.split.feature h5:first-child { margin-top: 0; }

/* plan boxes: one grid, so the price, text, button and list line up in every box on a row */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 0; margin: 20px 0 32px; }
.plan { display: flex; flex-direction: column; margin-bottom: 28px; border: 1px solid var(--border); border-top: 6px solid var(--brand); border-radius: 10px; padding: 24px 26px 22px; background: var(--soft); }
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
}
.plan h4 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 6px; color: var(--brand); }
.plan .price { margin: 0 0 12px; line-height: 1.2; }
.plan .price strong { font-size: 2.2rem; }
.plan .price span { color: var(--muted); font-size: .95rem; }
.plan .desc { margin: 0 0 18px; line-height: 1.5; }
.plan .btn { justify-self: start; align-self: start; margin-bottom: 18px; }
.plan ul { margin: 0 0 14px; padding-left: 1.2em; font-size: .98rem; align-self: start; }
.plan .fine { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; align-self: end; }

/* tables */
.tablewrap { overflow-x: auto; margin: 16px 0 24px; border-radius: 8px; border: 1px solid var(--border); }
.tablewrap table, .content table { border-collapse: collapse; width: 100%; margin: 0; }
.content table { margin: 16px 0; }
.content th, .content td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: middle; }
.tablewrap table th { background: var(--brand); color: #fff; white-space: nowrap; font-size: .95rem; }
.tablewrap table tbody tr:nth-child(even) { background: var(--soft); }
.tablewrap table tbody tr:last-child td { border-bottom: 0; }
.content td.tick { text-align: center; }
.tick span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }

/* NBN: small print and the customer quote */
.fineprint { font-size: .85rem; line-height: 1.55; color: var(--muted); max-width: 980px; }
.fineprint p { margin-bottom: .7em; }
.fineprint li { margin-bottom: .15em; }
.quote { margin: 40px 0 8px; padding: 28px 32px 24px 36px; background: var(--soft); border: 1px solid var(--border); border-left: 8px solid var(--brand); border-radius: 10px; max-width: 820px; position: relative; }
.quote::before { content: "\201C"; position: absolute; left: 12px; top: -8px; font-size: 4.5rem; line-height: 1; color: var(--brand); font-family: Georgia, serif; opacity: .35; }
.quote blockquote { margin: 0 0 12px; font-size: 1.15rem; font-style: italic; line-height: 1.65; }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.quote figcaption strong { color: var(--ink); }

/* Customer Information Summary: section links on the left */
.withside { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.side strong { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.side a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 6px; line-height: 1.35; font-size: 1rem; }
.side a:hover { background: var(--brand); color: #fff; }
.withside .main h2 { margin-top: 0; padding-top: 28px; scroll-margin-top: 90px; }
.withside .main h2:first-child { padding-top: 0; }
.withside .main p { margin: 0 0 8px; }
.withside .main p > a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); text-decoration: none; }
.withside .main p > a:hover { border-color: var(--brand); }

.form { display: grid; gap: 18px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label.inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; margin-right: 20px; }
.form input:not([type="radio"]), .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
.form fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; }
.form .trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { min-height: 1.4em; margin: 0; font-weight: 600; }
.msg.err { color: #b3261e; }
.msg.ok { color: #1a7f37; }

/* news: a picture beside every article */
.newslist .item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; border-bottom: 1px solid var(--border); padding: 24px 0; }
.newslist .item .thumb { display: block; }
.newslist .item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 0; border: 1px solid var(--border); }
.newslist .item h3 { margin: 0 0 4px; font-size: 1.4rem; }
.newslist .item h3 a { text-decoration: none; }
.newslist .item p { margin: 8px 0 0; }
.hint { color: var(--muted); font-size: .9rem; }
#news-post h1 { margin-top: 0; }
#news-post .pic { display: block; width: 100%; max-width: 520px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 16px 0 24px; border: 1px solid var(--border); }

.foot { background: var(--soft); border-top: 1px solid var(--border); margin-top: 56px; padding: 40px 0 8px; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.social { display: inline-flex; gap: 10px; margin-top: 8px; }
.social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; }
.social a:hover { background: var(--brand-dark); color: #fff; }
.foot .small { color: var(--muted); font-size: .85rem; padding-top: 22px; padding-bottom: 22px; }

/* tablet and smaller: the page links fold into a Menu button */
@media (max-width: 1240px) {
  .bar { flex-wrap: wrap; }
  .menu { display: block; }
  .nav { display: none; width: 100%; margin-left: 0; flex-direction: column; align-items: flex-start; white-space: normal; padding-bottom: 12px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 2px; font-size: 17px; }
  .nav a.portal, .nav span.portal.soon { margin: 8px 0 0; display: inline-block; }
}
/* tablet */
@media (max-width: 960px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  .plans { column-gap: 16px; }
  .plan { padding: 20px 18px 18px; }
  .plan .price strong { font-size: 1.9rem; }
  .plan ul { font-size: .92rem; }
  .withside { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .split { gap: 28px; }
  .hero { padding: 72px 0 80px; }
  .band { padding: 44px 22px 8px; }
  .content { padding: 32px 22px 44px; }
}
/* phones: one plan box per row */
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .plan { grid-row: auto; display: flex; padding: 24px 26px 22px; }
  .plan .price strong { font-size: 2.1rem; }
  .plan ul { font-size: .98rem; }
}
/* mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 46px; }
  .split, .split.feature { grid-template-columns: 1fr; gap: 20px; }
  .split.feature > img { max-width: 160px; }
  .withside { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .side strong { width: 100%; margin: 0 0 2px; }
  .side a { border: 1px solid var(--border); background: var(--bg); padding: 6px 12px; font-size: .92rem; }
  .newslist .item { grid-template-columns: 1fr; gap: 14px; }
  .newslist .item .thumb { max-width: 340px; }
  .content h1 { font-size: 1.9rem; }
  .hero { padding: 56px 0 64px; }
  .hero .btn { margin-bottom: 10px; }
  .band { padding: 36px 16px 4px; }
  .content { padding: 24px 16px 36px; }
  .quote { padding: 24px 20px 20px 24px; }
}
